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

18147 lines
574 KiB
C

/* Generated code for Python source for module 'urllib3.connection'
* 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$connection 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$connection;
PyDictObject *moduledict_urllib3$connection;
/* The module constants used, if any. */
extern PyObject *const_tuple_str_digest_c075052d723d6707083e869a0e3659bb_tuple;
extern PyObject *const_str_plain_warn;
extern PyObject *const_str_plain_headers;
extern PyObject *const_str_plain_SubjectAltNameWarning;
extern PyObject *const_str_plain_metaclass;
extern PyObject *const_str_digest_80f637382c7af69afc34ed6fe0d28101;
extern PyObject *const_str_plain_getLogger;
extern PyObject *const_str_plain___name__;
extern PyObject *const_str_digest_80cf594c6b193676cb3f905f65b5d391;
extern PyObject *const_str_plain_skip_accept_encoding;
extern PyObject *const_str_plain_CertificateError;
extern PyObject *const_str_digest_6b674c2a52b85692f41de0a2e49ce316;
extern PyObject *const_tuple_str_plain___class___tuple;
extern PyObject *const_str_angle_metaclass;
extern PyObject *const_str_plain_HTTPConnection;
extern PyObject *const_dict_93916f845314fde3dc45a1c4d3d34ff8;
extern PyObject *const_str_plain___file__;
extern PyObject *const_str_plain_setter;
extern PyObject *const_str_plain_object;
extern PyObject *const_str_plain__GLOBAL_DEFAULT_TIMEOUT;
extern PyObject *const_str_plain_args;
static PyObject *const_tuple_str_plain_source_address_none_tuple;
static PyObject *const_str_digest_413072d56f5b6cab90a6a564aa42b34d;
extern PyObject *const_str_plain_binary_type;
extern PyObject *const_str_plain_encode;
extern PyObject *const_str_digest_003800fb824e3437bbbf235acf31301c;
static PyObject *const_str_plain_stringish_types;
extern PyObject *const_tuple_str_plain_HTTPHeaderDict_tuple;
extern PyObject *const_str_plain_resolve_cert_reqs;
extern PyObject *const_str_plain_items;
static PyObject *const_str_digest_e8fecadf67c84324aa28152f08ceec4c;
extern PyObject *const_int_pos_80;
extern PyObject *const_str_plain_today;
extern PyObject *const_str_plain_SocketError;
extern PyObject *const_str_plain_os;
extern PyObject *const_str_plain_None;
extern PyObject *const_int_pos_6;
extern PyObject *const_str_plain_HTTPSConnection;
extern PyObject *const_tuple_str_plain_utf8_tuple;
extern PyObject *const_str_plain_expanduser;
extern PyObject *const_tuple_str_plain_HTTPConnection_tuple;
extern PyObject *const_str_plain_match_hostname;
extern PyObject *const_str_plain_putheader;
extern PyObject *const_str_plain_body;
extern PyObject *const_str_plain_assert_hostname;
extern PyObject *const_str_plain_PY3;
extern PyObject *const_str_plain_connect;
extern PyObject *const_int_pos_30;
extern PyObject *const_str_plain___doc__;
extern PyObject *const_str_plain_absolute_import;
extern PyObject *const_str_plain_skip_host;
static PyObject *const_str_digest_6c5b3ee9bbe47a9b1ec0c71ed61345f6;
extern PyObject *const_str_dot;
extern PyObject *const_str_plain_timeout;
extern PyObject *const_str_plain_binary_form;
extern PyObject *const_str_plain___debug__;
extern PyObject *const_str_plain___orig_bases__;
extern PyObject *const_str_plain_CERT_REQUIRED;
extern PyObject *const_str_digest_9ba1c08e5bab7a37429c5bb8555c9014;
static PyObject *const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple;
extern PyObject *const_tuple_none_none_none_none_none_none_none_tuple;
extern PyObject *const_str_plain_ssl_version;
extern PyObject *const_str_plain_warnings;
extern PyObject *const_str_plain_IPPROTO_TCP;
extern PyObject *const_str_plain_set_cert;
extern PyObject *const_str_plain___qualname__;
extern PyObject *const_str_plain_host;
extern PyObject *const_str_plain_HTTPException;
static PyObject *const_tuple_d6ef339f95fe7a0aadc4b44df969b43c_tuple;
extern PyObject *const_str_plain_packages;
extern PyObject *const_str_plain_https;
static PyObject *const_str_plain_RECENT_DATE;
extern PyObject *const_tuple_str_plain_self_str_plain_args_str_plain_kw_tuple;
extern PyObject *const_str_plain_sock;
extern PyObject *const_str_plain_path;
static PyObject *const_str_plain__peer_cert;
extern PyObject *const_str_plain_string_types;
extern PyObject *const_str_plain_VerifiedHTTPSConnection;
static PyObject *const_tuple_int_pos_2017_int_pos_6_int_pos_30_tuple;
extern PyObject *const_str_plain_six;
extern PyObject *const_str_plain_value;
extern PyObject *const_bytes_digest_103d73ccb44d3ba17b2afce6d3b01e78;
extern PyObject *const_tuple_str_plain_self_tuple;
static PyObject *const_str_digest_23a97306f3a4bf1a3b9bf48c92fd45b8;
static PyObject *const_str_plain__protocol;
extern PyObject *const_str_plain_conn;
static PyObject *const_str_digest_feb167a80b64f9a6111c2ef450038b43;
extern PyObject *const_str_plain_create_urllib3_context;
extern PyObject *const_int_pos_443;
extern PyObject *const_str_plain_e;
static PyObject *const_tuple_str_plain_HTTPException_tuple;
static PyObject *const_str_digest_fbcb06792f2497ac6c7abd423e9e2d62;
extern PyObject *const_str_digest_a93bc1dc732be398b86f8538baa37185;
static PyObject *const_str_plain__dns_host;
extern PyObject *const_str_plain_context;
extern PyObject *const_tuple_str_dot_tuple;
extern PyObject *const_tuple_str_plain_self_str_plain_conn_tuple;
static PyObject *const_str_digest_b8059d78d07f1c28e74284d373f1a4be;
extern PyObject *const_str_plain_auto_open;
extern PyObject *const_tuple_empty;
static PyObject *const_int_pos_2017;
extern PyObject *const_tuple_str_plain_self_str_plain_value_tuple;
extern PyObject *const_str_plain_assert_fingerprint;
static PyObject *const_str_digest_9edecb228e21673906c9e9045e5572f5;
extern PyObject *const_str_plain_ssl_context;
extern PyObject *const_str_plain_datetime;
extern PyObject *const_str_plain_SystemTimeWarning;
static PyObject *const_str_plain_len_str;
extern PyObject *const_str_plain_send;
extern PyObject *const_str_plain_verify_mode;
static PyObject *const_tuple_str_plain_cert_str_plain_asserted_hostname_str_plain_e_tuple;
static PyObject *const_str_plain_asserted_hostname;
extern PyObject *const_str_plain_exceptions;
static PyObject *const_tuple_type_BaseException_tuple;
extern PyObject *const_str_plain_HTTPHeaderDict;
extern PyObject *const_str_digest_f4cf83dd2e7e2f235646bf31dc9dfbff;
extern PyObject *const_str_plain__prepare_conn;
extern PyObject *const_str_plain_error;
extern PyObject *const_str_plain_util;
extern PyObject *const_tuple_str_plain_error_str_plain_timeout_tuple;
extern PyObject *const_str_plain_cert_file;
static PyObject *const_str_digest_c6805becf79cf5eff4b2929a8bdf6b80;
extern PyObject *const_str_plain_cert;
extern PyObject *const_str_plain_NewConnectionError;
extern PyObject *const_str_digest_2b15502c566d8238f4869c227793bd1a;
extern PyObject *const_str_plain___getitem__;
static PyObject *const_str_digest_76770aa881e569a0306b7353925db341;
extern PyObject *const_str_digest_c075052d723d6707083e869a0e3659bb;
extern PyObject *const_str_plain_strict;
extern PyObject *const_str_plain_putrequest;
extern PyObject *const_str_plain_resolve_ssl_version;
extern PyObject *const_str_plain_source_address;
extern PyObject *const_str_plain_connection;
extern PyObject *const_str_plain_pop;
extern PyObject *const_str_plain_ssl;
extern PyObject *const_int_0;
extern PyObject *const_str_plain__new_conn;
static PyObject *const_str_digest_123b7da439c7431dfd8705caa37438f8;
extern PyObject *const_str_plain_DummyConnection;
static PyObject *const_str_digest_e0fe92f188862ba1c4cac2ad70dff86d;
extern PyObject *const_str_plain_server_hostname;
static PyObject *const_str_digest_5e42e68968b4150e2b97070212311786;
static PyObject *const_str_plain_TCP_NODELAY;
extern PyObject *const_str_plain__tunnel_host;
extern PyObject *const_tuple_int_pos_2_int_pos_7_tuple;
static PyObject *const_str_digest_fa24e620292c5ddd664b0f39ae7cf5ea;
extern PyObject *const_str_plain_extra_kw;
extern PyObject *const_str_plain_cert_reqs;
static PyObject *const_tuple_str_plain_self_str_plain_extra_kw_str_plain_conn_str_plain_e_tuple;
extern PyObject *const_str_plain_ca_cert_dir;
extern PyObject *const_str_digest_75fd71b1edada749c2ef7ac810062295;
extern PyObject *const_str_plain_endheaders;
extern PyObject *const_str_plain_log;
static PyObject *const_str_plain__match_hostname;
static PyObject *const_str_digest_4512a68ac4b34dd91e9a87521e1e9eac;
static PyObject *const_str_digest_df5958c87718dd50f2e0bfe7cc6ada5c;
static PyObject *const_tuple_str_plain_match_hostname_str_plain_CertificateError_tuple;
extern PyObject *const_str_plain_header;
extern PyObject *const_str_digest_03224f9e3167cae45c1e00020c2975eb;
static PyObject *const_tuple_c41d3061087d911f2fb0d6a979240304_tuple;
static PyObject *const_dict_a6ff982bac01e8d0bcf997a792f16c84;
extern PyObject *const_tuple_str_plain_subjectAltName_tuple_empty_tuple;
extern PyObject *const_str_plain_type;
static PyObject *const_tuple_659bcfd89e2a907d800ea69675ef86b4_tuple;
extern PyObject *const_str_plain_ConnectionError;
extern PyObject *const_str_plain_CERT_NONE;
extern PyObject *const_str_digest_e4b0b56d1d18c023aae13ad5e86b5a90;
static PyObject *const_str_plain_UnverifiedHTTPSConnection;
extern PyObject *const_str_plain__tunnel;
extern PyObject *const_str_plain___cached__;
static PyObject *const_str_digest_b2bd82dd2dbc4f15314a5d4f089060d2;
extern PyObject *const_str_plain___class__;
extern PyObject *const_str_plain_chunked;
extern PyObject *const_tuple_none_tuple;
static PyObject *const_str_plain_is_time_off;
extern PyObject *const_str_plain_request_chunked;
extern PyObject *const_str_plain_socket_options;
extern PyObject *const_tuple_type_Exception_tuple;
static PyObject *const_tuple_e4d50c48f2ee1b6eb3ae021a15141bf1_tuple;
extern PyObject *const_str_plain___module__;
extern PyObject *const_tuple_type_object_tuple;
extern PyObject *const_str_plain_subjectAltName;
extern PyObject *const_str_plain_sys;
static PyObject *const_tuple_str_digest_003800fb824e3437bbbf235acf31301c_tuple;
extern PyObject *const_str_plain_utf8;
extern PyObject *const_str_plain_chunk;
extern PyObject *const_str_plain_kw;
static PyObject *const_str_digest_f6189a2c440cbd27c022f13cff60a572;
static PyObject *const_str_plain__HTTPConnection;
extern PyObject *const_str_plain_ConnectTimeoutError;
extern PyObject *const_str_plain_port;
extern PyObject *const_str_plain_ssl_wrap_socket;
extern PyObject *const_str_plain_ca_certs;
extern PyObject *const_str_plain_socket;
extern PyObject *const_int_pos_1;
extern PyObject *const_str_plain__collections;
extern PyObject *const_str_plain_SocketTimeout;
extern PyObject *const_str_plain_hostname;
extern PyObject *const_str_plain_getpeercert;
extern PyObject *const_slice_int_pos_2_none_none;
static PyObject *const_tuple_61284583746c6b5cc710968d0fedad5b_tuple;
extern PyObject *const_str_plain___init__;
static PyObject *const_str_digest_dc659baf5812ef509a1bfb99226d850c;
extern PyObject *const_str_plain___prepare__;
extern PyObject *const_str_plain_BaseSSLError;
static PyObject *const_str_digest_138ac2fe8317d63412cc87ad615d6704;
extern PyObject *const_str_plain_create_connection;
extern PyObject *const_str_plain_url;
extern PyObject *const_str_plain_self;
extern PyObject *const_str_plain_rstrip;
extern PyObject *const_str_plain_key_file;
extern PyObject *const_tuple_bytes_digest_103d73ccb44d3ba17b2afce6d3b01e78_tuple;
extern PyObject *const_str_plain_version_info;
extern PyObject *const_tuple_str_plain_six_tuple;
extern PyObject *const_str_plain_method;
extern PyObject *const_str_plain_keyfile;
extern PyObject *const_int_pos_7;
extern PyObject *const_str_plain_get;
extern PyObject *const_str_plain_check_hostname;
extern PyObject *const_str_plain_default_socket_options;
extern PyObject *const_bytes_digest_e22048e4de62b4d2ac355aed7a0f9014;
extern PyObject *const_str_plain_http;
extern PyObject *const_int_pos_2;
static PyObject *const_tuple_str_plain_strict_none_tuple;
extern PyObject *const_str_plain_default_port;
extern PyObject *const_str_plain_date;
static PyObject *const_tuple_str_plain_source_address_tuple;
extern PyObject *const_str_plain_certfile;
extern PyObject *const_str_plain_format;
extern PyObject *const_str_plain_logging;
extern PyObject *const_str_digest_0a2ea16757d4dad15d4c8e0ada40cd0c;
extern PyObject *const_str_digest_0f2eb9f71c85852d8e24437103b38cdd;
extern PyObject *const_tuple_str_plain_connection_tuple;
extern PyObject *const_str_plain_SSLError;
extern PyObject *const_str_plain_property;
extern PyObject *const_tuple_none_none_tuple;
extern PyObject *const_tuple_bytes_digest_e22048e4de62b4d2ac355aed7a0f9014_tuple;
extern PyObject *const_str_plain_is_verified;
static PyObject *const_tuple_1bf7ec2364041a6038f313c34bc76226_tuple;
extern PyObject *const_tuple_type_ImportError_type_AttributeError_tuple;
extern PyObject *const_str_plain_port_by_scheme;
static PyObject *module_filename_obj;
static bool constants_created = false;
static void createModuleConstants( void )
{
const_tuple_str_plain_source_address_none_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_str_plain_source_address_none_tuple, 0, const_str_plain_source_address ); Py_INCREF( const_str_plain_source_address );
PyTuple_SET_ITEM( const_tuple_str_plain_source_address_none_tuple, 1, Py_None ); Py_INCREF( Py_None );
const_str_digest_413072d56f5b6cab90a6a564aa42b34d = UNSTREAM_STRING( &constant_bin[ 1456945 ], 927, 0 );
const_str_plain_stringish_types = UNSTREAM_STRING( &constant_bin[ 1457872 ], 15, 1 );
const_str_digest_e8fecadf67c84324aa28152f08ceec4c = UNSTREAM_STRING( &constant_bin[ 1457887 ], 64, 0 );
const_str_digest_6c5b3ee9bbe47a9b1ec0c71ed61345f6 = UNSTREAM_STRING( &constant_bin[ 1457951 ], 30, 0 );
const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple = PyTuple_New( 9 );
PyTuple_SET_ITEM( const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
PyTuple_SET_ITEM( const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 1, const_str_plain_host ); Py_INCREF( const_str_plain_host );
PyTuple_SET_ITEM( const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 2, const_str_plain_port ); Py_INCREF( const_str_plain_port );
PyTuple_SET_ITEM( const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 3, const_str_plain_key_file ); Py_INCREF( const_str_plain_key_file );
PyTuple_SET_ITEM( const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 4, const_str_plain_cert_file ); Py_INCREF( const_str_plain_cert_file );
PyTuple_SET_ITEM( const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 5, const_str_plain_strict ); Py_INCREF( const_str_plain_strict );
PyTuple_SET_ITEM( const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 6, const_str_plain_timeout ); Py_INCREF( const_str_plain_timeout );
PyTuple_SET_ITEM( const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 7, const_str_plain_ssl_context ); Py_INCREF( const_str_plain_ssl_context );
PyTuple_SET_ITEM( const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 8, const_str_plain_kw ); Py_INCREF( const_str_plain_kw );
const_tuple_d6ef339f95fe7a0aadc4b44df969b43c_tuple = PyTuple_New( 6 );
PyTuple_SET_ITEM( const_tuple_d6ef339f95fe7a0aadc4b44df969b43c_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
PyTuple_SET_ITEM( const_tuple_d6ef339f95fe7a0aadc4b44df969b43c_tuple, 1, const_str_plain_conn ); Py_INCREF( const_str_plain_conn );
PyTuple_SET_ITEM( const_tuple_d6ef339f95fe7a0aadc4b44df969b43c_tuple, 2, const_str_plain_hostname ); Py_INCREF( const_str_plain_hostname );
const_str_plain_is_time_off = UNSTREAM_STRING( &constant_bin[ 1457981 ], 11, 1 );
PyTuple_SET_ITEM( const_tuple_d6ef339f95fe7a0aadc4b44df969b43c_tuple, 3, const_str_plain_is_time_off ); Py_INCREF( const_str_plain_is_time_off );
PyTuple_SET_ITEM( const_tuple_d6ef339f95fe7a0aadc4b44df969b43c_tuple, 4, const_str_plain_context ); Py_INCREF( const_str_plain_context );
PyTuple_SET_ITEM( const_tuple_d6ef339f95fe7a0aadc4b44df969b43c_tuple, 5, const_str_plain_cert ); Py_INCREF( const_str_plain_cert );
const_str_plain_RECENT_DATE = UNSTREAM_STRING( &constant_bin[ 1457992 ], 11, 1 );
const_str_plain__peer_cert = UNSTREAM_STRING( &constant_bin[ 1458003 ], 10, 1 );
const_tuple_int_pos_2017_int_pos_6_int_pos_30_tuple = PyTuple_New( 3 );
const_int_pos_2017 = PyLong_FromUnsignedLong( 2017ul );
PyTuple_SET_ITEM( const_tuple_int_pos_2017_int_pos_6_int_pos_30_tuple, 0, const_int_pos_2017 ); Py_INCREF( const_int_pos_2017 );
PyTuple_SET_ITEM( const_tuple_int_pos_2017_int_pos_6_int_pos_30_tuple, 1, const_int_pos_6 ); Py_INCREF( const_int_pos_6 );
PyTuple_SET_ITEM( const_tuple_int_pos_2017_int_pos_6_int_pos_30_tuple, 2, const_int_pos_30 ); Py_INCREF( const_int_pos_30 );
const_str_digest_23a97306f3a4bf1a3b9bf48c92fd45b8 = UNSTREAM_STRING( &constant_bin[ 1458013 ], 27, 0 );
const_str_plain__protocol = UNSTREAM_STRING( &constant_bin[ 829149 ], 9, 1 );
const_str_digest_feb167a80b64f9a6111c2ef450038b43 = UNSTREAM_STRING( &constant_bin[ 1458040 ], 215, 0 );
const_tuple_str_plain_HTTPException_tuple = PyTuple_New( 1 );
PyTuple_SET_ITEM( const_tuple_str_plain_HTTPException_tuple, 0, const_str_plain_HTTPException ); Py_INCREF( const_str_plain_HTTPException );
const_str_digest_fbcb06792f2497ac6c7abd423e9e2d62 = UNSTREAM_STRING( &constant_bin[ 1458255 ], 9, 0 );
const_str_plain__dns_host = UNSTREAM_STRING( &constant_bin[ 1458127 ], 9, 1 );
const_str_digest_b8059d78d07f1c28e74284d373f1a4be = UNSTREAM_STRING( &constant_bin[ 1458264 ], 28, 0 );
const_str_digest_9edecb228e21673906c9e9045e5572f5 = UNSTREAM_STRING( &constant_bin[ 1458292 ], 234, 0 );
const_str_plain_len_str = UNSTREAM_STRING( &constant_bin[ 1458526 ], 7, 1 );
const_tuple_str_plain_cert_str_plain_asserted_hostname_str_plain_e_tuple = PyTuple_New( 3 );
PyTuple_SET_ITEM( const_tuple_str_plain_cert_str_plain_asserted_hostname_str_plain_e_tuple, 0, const_str_plain_cert ); Py_INCREF( const_str_plain_cert );
const_str_plain_asserted_hostname = UNSTREAM_STRING( &constant_bin[ 1458533 ], 17, 1 );
PyTuple_SET_ITEM( const_tuple_str_plain_cert_str_plain_asserted_hostname_str_plain_e_tuple, 1, const_str_plain_asserted_hostname ); Py_INCREF( const_str_plain_asserted_hostname );
PyTuple_SET_ITEM( const_tuple_str_plain_cert_str_plain_asserted_hostname_str_plain_e_tuple, 2, const_str_plain_e ); Py_INCREF( const_str_plain_e );
const_tuple_type_BaseException_tuple = PyTuple_New( 1 );
PyTuple_SET_ITEM( const_tuple_type_BaseException_tuple, 0, (PyObject *)PyExc_BaseException ); Py_INCREF( (PyObject *)PyExc_BaseException );
const_str_digest_c6805becf79cf5eff4b2929a8bdf6b80 = UNSTREAM_STRING( &constant_bin[ 1458550 ], 24, 0 );
const_str_digest_76770aa881e569a0306b7353925db341 = UNSTREAM_STRING( &constant_bin[ 1458574 ], 87, 0 );
const_str_digest_123b7da439c7431dfd8705caa37438f8 = UNSTREAM_STRING( &constant_bin[ 1458661 ], 54, 0 );
const_str_digest_e0fe92f188862ba1c4cac2ad70dff86d = UNSTREAM_STRING( &constant_bin[ 1458715 ], 112, 0 );
const_str_digest_5e42e68968b4150e2b97070212311786 = UNSTREAM_STRING( &constant_bin[ 1458827 ], 88, 0 );
const_str_plain_TCP_NODELAY = UNSTREAM_STRING( &constant_bin[ 1458915 ], 11, 1 );
const_str_digest_fa24e620292c5ddd664b0f39ae7cf5ea = UNSTREAM_STRING( &constant_bin[ 1458926 ], 91, 0 );
const_tuple_str_plain_self_str_plain_extra_kw_str_plain_conn_str_plain_e_tuple = PyTuple_New( 4 );
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_extra_kw_str_plain_conn_str_plain_e_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_extra_kw_str_plain_conn_str_plain_e_tuple, 1, const_str_plain_extra_kw ); Py_INCREF( const_str_plain_extra_kw );
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_extra_kw_str_plain_conn_str_plain_e_tuple, 2, const_str_plain_conn ); Py_INCREF( const_str_plain_conn );
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_extra_kw_str_plain_conn_str_plain_e_tuple, 3, const_str_plain_e ); Py_INCREF( const_str_plain_e );
const_str_plain__match_hostname = UNSTREAM_STRING( &constant_bin[ 1459017 ], 15, 1 );
const_str_digest_4512a68ac4b34dd91e9a87521e1e9eac = UNSTREAM_STRING( &constant_bin[ 1459032 ], 19, 0 );
const_str_digest_df5958c87718dd50f2e0bfe7cc6ada5c = UNSTREAM_STRING( &constant_bin[ 1459051 ], 45, 0 );
const_tuple_str_plain_match_hostname_str_plain_CertificateError_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_str_plain_match_hostname_str_plain_CertificateError_tuple, 0, const_str_plain_match_hostname ); Py_INCREF( const_str_plain_match_hostname );
PyTuple_SET_ITEM( const_tuple_str_plain_match_hostname_str_plain_CertificateError_tuple, 1, const_str_plain_CertificateError ); Py_INCREF( const_str_plain_CertificateError );
const_tuple_c41d3061087d911f2fb0d6a979240304_tuple = PyTuple_New( 12 );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 1, const_str_plain_method ); Py_INCREF( const_str_plain_method );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 2, const_str_plain_url ); Py_INCREF( const_str_plain_url );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 3, const_str_plain_body ); Py_INCREF( const_str_plain_body );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 4, const_str_plain_headers ); Py_INCREF( const_str_plain_headers );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 5, const_str_plain_skip_accept_encoding ); Py_INCREF( const_str_plain_skip_accept_encoding );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 6, const_str_plain_skip_host ); Py_INCREF( const_str_plain_skip_host );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 7, const_str_plain_header ); Py_INCREF( const_str_plain_header );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 8, const_str_plain_value ); Py_INCREF( const_str_plain_value );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 9, const_str_plain_stringish_types ); Py_INCREF( const_str_plain_stringish_types );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 10, const_str_plain_chunk ); Py_INCREF( const_str_plain_chunk );
PyTuple_SET_ITEM( const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 11, const_str_plain_len_str ); Py_INCREF( const_str_plain_len_str );
const_dict_a6ff982bac01e8d0bcf997a792f16c84 = _PyDict_NewPresized( 1 );
PyDict_SetItem( const_dict_a6ff982bac01e8d0bcf997a792f16c84, const_str_plain_binary_form, Py_True );
assert( PyDict_Size( const_dict_a6ff982bac01e8d0bcf997a792f16c84 ) == 1 );
const_tuple_659bcfd89e2a907d800ea69675ef86b4_tuple = PyTuple_New( 5 );
PyTuple_SET_ITEM( const_tuple_659bcfd89e2a907d800ea69675ef86b4_tuple, 0, const_str_plain_resolve_cert_reqs ); Py_INCREF( const_str_plain_resolve_cert_reqs );
PyTuple_SET_ITEM( const_tuple_659bcfd89e2a907d800ea69675ef86b4_tuple, 1, const_str_plain_resolve_ssl_version ); Py_INCREF( const_str_plain_resolve_ssl_version );
PyTuple_SET_ITEM( const_tuple_659bcfd89e2a907d800ea69675ef86b4_tuple, 2, const_str_plain_assert_fingerprint ); Py_INCREF( const_str_plain_assert_fingerprint );
PyTuple_SET_ITEM( const_tuple_659bcfd89e2a907d800ea69675ef86b4_tuple, 3, const_str_plain_create_urllib3_context ); Py_INCREF( const_str_plain_create_urllib3_context );
PyTuple_SET_ITEM( const_tuple_659bcfd89e2a907d800ea69675ef86b4_tuple, 4, const_str_plain_ssl_wrap_socket ); Py_INCREF( const_str_plain_ssl_wrap_socket );
const_str_plain_UnverifiedHTTPSConnection = UNSTREAM_STRING( &constant_bin[ 1459096 ], 25, 1 );
const_str_digest_b2bd82dd2dbc4f15314a5d4f089060d2 = UNSTREAM_STRING( &constant_bin[ 1459121 ], 1147, 0 );
const_tuple_e4d50c48f2ee1b6eb3ae021a15141bf1_tuple = PyTuple_New( 4 );
PyTuple_SET_ITEM( const_tuple_e4d50c48f2ee1b6eb3ae021a15141bf1_tuple, 0, const_str_plain_NewConnectionError ); Py_INCREF( const_str_plain_NewConnectionError );
PyTuple_SET_ITEM( const_tuple_e4d50c48f2ee1b6eb3ae021a15141bf1_tuple, 1, const_str_plain_ConnectTimeoutError ); Py_INCREF( const_str_plain_ConnectTimeoutError );
PyTuple_SET_ITEM( const_tuple_e4d50c48f2ee1b6eb3ae021a15141bf1_tuple, 2, const_str_plain_SubjectAltNameWarning ); Py_INCREF( const_str_plain_SubjectAltNameWarning );
PyTuple_SET_ITEM( const_tuple_e4d50c48f2ee1b6eb3ae021a15141bf1_tuple, 3, const_str_plain_SystemTimeWarning ); Py_INCREF( const_str_plain_SystemTimeWarning );
const_tuple_str_digest_003800fb824e3437bbbf235acf31301c_tuple = PyTuple_New( 1 );
PyTuple_SET_ITEM( const_tuple_str_digest_003800fb824e3437bbbf235acf31301c_tuple, 0, const_str_digest_003800fb824e3437bbbf235acf31301c ); Py_INCREF( const_str_digest_003800fb824e3437bbbf235acf31301c );
const_str_digest_f6189a2c440cbd27c022f13cff60a572 = UNSTREAM_STRING( &constant_bin[ 1460268 ], 32, 0 );
const_str_plain__HTTPConnection = UNSTREAM_STRING( &constant_bin[ 621892 ], 15, 1 );
const_tuple_61284583746c6b5cc710968d0fedad5b_tuple = PyTuple_New( 8 );
PyTuple_SET_ITEM( const_tuple_61284583746c6b5cc710968d0fedad5b_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
PyTuple_SET_ITEM( const_tuple_61284583746c6b5cc710968d0fedad5b_tuple, 1, const_str_plain_key_file ); Py_INCREF( const_str_plain_key_file );
PyTuple_SET_ITEM( const_tuple_61284583746c6b5cc710968d0fedad5b_tuple, 2, const_str_plain_cert_file ); Py_INCREF( const_str_plain_cert_file );
PyTuple_SET_ITEM( const_tuple_61284583746c6b5cc710968d0fedad5b_tuple, 3, const_str_plain_cert_reqs ); Py_INCREF( const_str_plain_cert_reqs );
PyTuple_SET_ITEM( const_tuple_61284583746c6b5cc710968d0fedad5b_tuple, 4, const_str_plain_ca_certs ); Py_INCREF( const_str_plain_ca_certs );
PyTuple_SET_ITEM( const_tuple_61284583746c6b5cc710968d0fedad5b_tuple, 5, const_str_plain_assert_hostname ); Py_INCREF( const_str_plain_assert_hostname );
PyTuple_SET_ITEM( const_tuple_61284583746c6b5cc710968d0fedad5b_tuple, 6, const_str_plain_assert_fingerprint ); Py_INCREF( const_str_plain_assert_fingerprint );
PyTuple_SET_ITEM( const_tuple_61284583746c6b5cc710968d0fedad5b_tuple, 7, const_str_plain_ca_cert_dir ); Py_INCREF( const_str_plain_ca_cert_dir );
const_str_digest_dc659baf5812ef509a1bfb99226d850c = UNSTREAM_STRING( &constant_bin[ 1460300 ], 131, 0 );
const_str_digest_138ac2fe8317d63412cc87ad615d6704 = UNSTREAM_STRING( &constant_bin[ 1460431 ], 31, 0 );
const_tuple_str_plain_strict_none_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_str_plain_strict_none_tuple, 0, const_str_plain_strict ); Py_INCREF( const_str_plain_strict );
PyTuple_SET_ITEM( const_tuple_str_plain_strict_none_tuple, 1, Py_None ); Py_INCREF( Py_None );
const_tuple_str_plain_source_address_tuple = PyTuple_New( 1 );
PyTuple_SET_ITEM( const_tuple_str_plain_source_address_tuple, 0, const_str_plain_source_address ); Py_INCREF( const_str_plain_source_address );
const_tuple_1bf7ec2364041a6038f313c34bc76226_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_1bf7ec2364041a6038f313c34bc76226_tuple, 0, const_str_digest_2b15502c566d8238f4869c227793bd1a ); Py_INCREF( const_str_digest_2b15502c566d8238f4869c227793bd1a );
PyTuple_SET_ITEM( const_tuple_1bf7ec2364041a6038f313c34bc76226_tuple, 1, const_str_plain_chunked ); Py_INCREF( const_str_plain_chunked );
constants_created = true;
}
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_urllib3$connection( void )
{
// The module may not have been used at all.
if (constants_created == false) return;
}
#endif
// The module code objects.
static PyCodeObject *codeobj_aa400c26d6baaba6883bb70b16940588;
static PyCodeObject *codeobj_fc8c12040a85b20506c0975151b2b704;
static PyCodeObject *codeobj_08c67e79a2abab08fd6ee625591c87ea;
static PyCodeObject *codeobj_4548f050f2c31cbba54da18fe72fcddc;
static PyCodeObject *codeobj_24b1e0a523c51d10d62ad6b9663deec9;
static PyCodeObject *codeobj_241d2e5304967bbe85bd4aa540337435;
static PyCodeObject *codeobj_5c3b0830d513c3fe481cb78b8fa76e30;
static PyCodeObject *codeobj_e78847097403aeb71e00b52a5ab6269a;
static PyCodeObject *codeobj_156f179f138a050c1e91739a9155edc0;
static PyCodeObject *codeobj_dd2d61ef46844522e3e2314213540cae;
static PyCodeObject *codeobj_91b7e99f47caf9423225d6a9ed7fc75f;
static PyCodeObject *codeobj_d5e764e225c785beb6ac3ddf23ac11e8;
static PyCodeObject *codeobj_6c314261d4320adf0e4891e06c9d3265;
static PyCodeObject *codeobj_44592aa602c1481bb93c466efba552f2;
static PyCodeObject *codeobj_43e6aee7702f4fbda33aa3a06e013254;
static PyCodeObject *codeobj_d795a35735d4f08d08087c9bd30e723c;
static void createModuleCodeObjects(void)
{
module_filename_obj = const_str_digest_123b7da439c7431dfd8705caa37438f8;
codeobj_aa400c26d6baaba6883bb70b16940588 = MAKE_CODEOBJ( module_filename_obj, const_str_digest_23a97306f3a4bf1a3b9bf48c92fd45b8, 1, const_tuple_empty, 0, 0, CO_NOFREE );
codeobj_fc8c12040a85b20506c0975151b2b704 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_HTTPConnection, 71, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
codeobj_08c67e79a2abab08fd6ee625591c87ea = MAKE_CODEOBJ( module_filename_obj, const_str_plain_HTTPSConnection, 238, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
codeobj_4548f050f2c31cbba54da18fe72fcddc = MAKE_CODEOBJ( module_filename_obj, const_str_plain_VerifiedHTTPSConnection, 276, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
codeobj_24b1e0a523c51d10d62ad6b9663deec9 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 107, const_tuple_str_plain_self_str_plain_args_str_plain_kw_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARARGS | CO_VARKEYWORDS | CO_NOFREE );
codeobj_241d2e5304967bbe85bd4aa540337435 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 243, const_tuple_ec2148e8e69feccf3e2ae72b685486fd_tuple, 8, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE );
codeobj_5c3b0830d513c3fe481cb78b8fa76e30 = MAKE_CODEOBJ( module_filename_obj, const_str_plain__match_hostname, 384, const_tuple_str_plain_cert_str_plain_asserted_hostname_str_plain_e_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_e78847097403aeb71e00b52a5ab6269a = MAKE_CODEOBJ( module_filename_obj, const_str_plain__new_conn, 157, const_tuple_str_plain_self_str_plain_extra_kw_str_plain_conn_str_plain_e_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_156f179f138a050c1e91739a9155edc0 = MAKE_CODEOBJ( module_filename_obj, const_str_plain__prepare_conn, 184, const_tuple_str_plain_self_str_plain_conn_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_dd2d61ef46844522e3e2314213540cae = MAKE_CODEOBJ( module_filename_obj, const_str_plain_connect, 195, const_tuple_str_plain_self_str_plain_conn_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_91b7e99f47caf9423225d6a9ed7fc75f = MAKE_CODEOBJ( module_filename_obj, const_str_plain_connect, 258, const_tuple_str_plain_self_str_plain_conn_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_d5e764e225c785beb6ac3ddf23ac11e8 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_connect, 312, const_tuple_d6ef339f95fe7a0aadc4b44df969b43c_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_6c314261d4320adf0e4891e06c9d3265 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_host, 128, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_44592aa602c1481bb93c466efba552f2 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_host, 147, const_tuple_str_plain_self_str_plain_value_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_43e6aee7702f4fbda33aa3a06e013254 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_request_chunked, 199, const_tuple_c41d3061087d911f2fb0d6a979240304_tuple, 5, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_d795a35735d4f08d08087c9bd30e723c = MAKE_CODEOBJ( module_filename_obj, const_str_plain_set_cert, 287, const_tuple_61284583746c6b5cc710968d0fedad5b_tuple, 8, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
}
// The module function declarations.
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_1__mro_entries_conversion( PyObject **python_pars );
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_6_complex_call_helper_pos_star_list_star_dict( PyObject **python_pars );
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_5_complex_call_helper_pos_star_dict( PyObject **python_pars );
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_8_complex_call_helper_pos_keywords_star_dict( PyObject **python_pars );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_10_set_cert( PyObject *defaults );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_11_connect( );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_12__match_hostname( );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_1___init__( );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_2_host( );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_3_host( );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_4__new_conn( );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_5__prepare_conn( );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_6_connect( );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_7_request_chunked( PyObject *defaults );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_8___init__( PyObject *defaults );
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_9_connect( );
// The module function definitions.
static PyObject *impl_urllib3$connection$$$function_1___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_args = python_pars[ 1 ];
PyObject *par_kw = python_pars[ 2 ];
struct Nuitka_FrameObject *frame_24b1e0a523c51d10d62ad6b9663deec9;
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;
bool tmp_result;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_24b1e0a523c51d10d62ad6b9663deec9 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_24b1e0a523c51d10d62ad6b9663deec9, codeobj_24b1e0a523c51d10d62ad6b9663deec9, module_urllib3$connection, sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_24b1e0a523c51d10d62ad6b9663deec9 = cache_frame_24b1e0a523c51d10d62ad6b9663deec9;
// Push the new frame as the currently active one.
pushFrameStack( frame_24b1e0a523c51d10d62ad6b9663deec9 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_24b1e0a523c51d10d62ad6b9663deec9 ) == 2 ); // Frame stack
// Framed code:
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_source_name_1;
PyObject *tmp_mvar_value_1;
PyObject *tmp_attribute_value_1;
int tmp_truth_name_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (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 = 108;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = tmp_mvar_value_1;
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_PY3 );
if ( tmp_attribute_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 108;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_attribute_value_1 );
if ( tmp_truth_name_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_attribute_value_1 );
exception_lineno = 108;
type_description_1 = "ooo";
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_called_instance_1;
if ( par_kw == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "kw" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 109;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_called_instance_1 = par_kw;
frame_24b1e0a523c51d10d62ad6b9663deec9->m_frame.f_lineno = 109;
tmp_unused = CALL_METHOD_WITH_ARGS2( tmp_called_instance_1, const_str_plain_pop, &PyTuple_GET_ITEM( const_tuple_str_plain_strict_none_tuple, 0 ) );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 109;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
branch_no_1:;
}
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_called_instance_2;
PyObject *tmp_assattr_target_1;
if ( par_kw == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "kw" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 112;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_called_instance_2 = par_kw;
frame_24b1e0a523c51d10d62ad6b9663deec9->m_frame.f_lineno = 112;
tmp_assattr_name_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_2, const_str_plain_get, &PyTuple_GET_ITEM( const_tuple_str_plain_source_address_tuple, 0 ) );
if ( tmp_assattr_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 112;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 112;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_source_address, tmp_assattr_name_1 );
Py_DECREF( tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 112;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
}
{
nuitka_bool tmp_condition_result_2;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
PyObject *tmp_source_name_2;
PyObject *tmp_mvar_value_2;
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_sys );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_sys );
}
if ( tmp_mvar_value_2 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "sys" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 114;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_source_name_2 = tmp_mvar_value_2;
tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_version_info );
if ( tmp_compexpr_left_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 114;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_compexpr_right_1 = const_tuple_int_pos_2_int_pos_7_tuple;
tmp_res = RICH_COMPARE_BOOL_LT( tmp_compexpr_left_1, tmp_compexpr_right_1 );
Py_DECREF( tmp_compexpr_left_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 114;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
{
goto branch_yes_2;
}
else
{
goto branch_no_2;
}
branch_yes_2:;
{
PyObject *tmp_called_instance_3;
if ( par_kw == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "kw" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 119;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_called_instance_3 = par_kw;
frame_24b1e0a523c51d10d62ad6b9663deec9->m_frame.f_lineno = 119;
tmp_unused = CALL_METHOD_WITH_ARGS2( tmp_called_instance_3, const_str_plain_pop, &PyTuple_GET_ITEM( const_tuple_str_plain_source_address_none_tuple, 0 ) );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 119;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
branch_no_2:;
}
{
PyObject *tmp_assattr_name_2;
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_3;
PyObject *tmp_args_element_name_1;
PyObject *tmp_args_element_name_2;
PyObject *tmp_source_name_4;
PyObject *tmp_assattr_target_2;
if ( par_kw == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "kw" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 123;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_source_name_3 = par_kw;
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_pop );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 123;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_1 = const_str_plain_socket_options;
if ( par_self == 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", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 123;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_source_name_4 = par_self;
tmp_args_element_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_default_socket_options );
if ( tmp_args_element_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_1 );
exception_lineno = 123;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
frame_24b1e0a523c51d10d62ad6b9663deec9->m_frame.f_lineno = 123;
{
PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 };
tmp_assattr_name_2 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_args_element_name_2 );
if ( tmp_assattr_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 123;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 123;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_2 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_socket_options, tmp_assattr_name_2 );
Py_DECREF( tmp_assattr_name_2 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 123;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_source_name_5;
PyObject *tmp_mvar_value_3;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
PyObject *tmp_dircall_arg4_1;
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain__HTTPConnection );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__HTTPConnection );
}
if ( tmp_mvar_value_3 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_HTTPConnection" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 126;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_source_name_5 = tmp_mvar_value_3;
tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain___init__ );
if ( tmp_dircall_arg1_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 126;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 126;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_tuple_element_1 = par_self;
tmp_dircall_arg2_1 = PyTuple_New( 1 );
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_dircall_arg2_1, 0, tmp_tuple_element_1 );
if ( par_args == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "args" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 126;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_dircall_arg3_1 = par_args;
if ( par_kw == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "kw" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 126;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_dircall_arg4_1 = par_kw;
Py_INCREF( tmp_dircall_arg3_1 );
Py_INCREF( tmp_dircall_arg4_1 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1, tmp_dircall_arg4_1};
tmp_unused = impl___internal__$$$function_6_complex_call_helper_pos_star_list_star_dict( dir_call_args );
}
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 126;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_24b1e0a523c51d10d62ad6b9663deec9 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_24b1e0a523c51d10d62ad6b9663deec9 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_24b1e0a523c51d10d62ad6b9663deec9, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_24b1e0a523c51d10d62ad6b9663deec9->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_24b1e0a523c51d10d62ad6b9663deec9, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_24b1e0a523c51d10d62ad6b9663deec9,
type_description_1,
par_self,
par_args,
par_kw
);
// Release cached frame.
if ( frame_24b1e0a523c51d10d62ad6b9663deec9 == cache_frame_24b1e0a523c51d10d62ad6b9663deec9 )
{
Py_DECREF( frame_24b1e0a523c51d10d62ad6b9663deec9 );
}
cache_frame_24b1e0a523c51d10d62ad6b9663deec9 = NULL;
assertFrameObject( frame_24b1e0a523c51d10d62ad6b9663deec9 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_1___init__ );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_args );
par_args = NULL;
}
{
Py_XDECREF( par_kw );
par_kw = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_args );
par_args = NULL;
}
{
Py_XDECREF( par_kw );
par_kw = 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$connection$$$function_1___init__ );
return NULL;
function_exception_exit:
assert( exception_type );
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return NULL;
function_return_exit:
CHECK_OBJECT( tmp_return_value );
assert( had_error || !ERROR_OCCURRED() );
return tmp_return_value;
}
static PyObject *impl_urllib3$connection$$$function_2_host( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
struct Nuitka_FrameObject *frame_6c314261d4320adf0e4891e06c9d3265;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
static struct Nuitka_FrameObject *cache_frame_6c314261d4320adf0e4891e06c9d3265 = 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_6c314261d4320adf0e4891e06c9d3265, codeobj_6c314261d4320adf0e4891e06c9d3265, module_urllib3$connection, sizeof(void *) );
frame_6c314261d4320adf0e4891e06c9d3265 = cache_frame_6c314261d4320adf0e4891e06c9d3265;
// Push the new frame as the currently active one.
pushFrameStack( frame_6c314261d4320adf0e4891e06c9d3265 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_6c314261d4320adf0e4891e06c9d3265 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_called_instance_1;
PyObject *tmp_source_name_1;
CHECK_OBJECT( par_self );
tmp_source_name_1 = par_self;
tmp_called_instance_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__dns_host );
if ( tmp_called_instance_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 145;
type_description_1 = "o";
goto frame_exception_exit_1;
}
frame_6c314261d4320adf0e4891e06c9d3265->m_frame.f_lineno = 145;
tmp_return_value = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_rstrip, &PyTuple_GET_ITEM( const_tuple_str_dot_tuple, 0 ) );
Py_DECREF( tmp_called_instance_1 );
if ( tmp_return_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 145;
type_description_1 = "o";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_6c314261d4320adf0e4891e06c9d3265 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_6c314261d4320adf0e4891e06c9d3265 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_6c314261d4320adf0e4891e06c9d3265 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_6c314261d4320adf0e4891e06c9d3265, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_6c314261d4320adf0e4891e06c9d3265->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_6c314261d4320adf0e4891e06c9d3265, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_6c314261d4320adf0e4891e06c9d3265,
type_description_1,
par_self
);
// Release cached frame.
if ( frame_6c314261d4320adf0e4891e06c9d3265 == cache_frame_6c314261d4320adf0e4891e06c9d3265 )
{
Py_DECREF( frame_6c314261d4320adf0e4891e06c9d3265 );
}
cache_frame_6c314261d4320adf0e4891e06c9d3265 = NULL;
assertFrameObject( frame_6c314261d4320adf0e4891e06c9d3265 );
// 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$connection$$$function_2_host );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_2_host );
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$connection$$$function_3_host( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_value = python_pars[ 1 ];
struct Nuitka_FrameObject *frame_44592aa602c1481bb93c466efba552f2;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
bool tmp_result;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
static struct Nuitka_FrameObject *cache_frame_44592aa602c1481bb93c466efba552f2 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_44592aa602c1481bb93c466efba552f2, codeobj_44592aa602c1481bb93c466efba552f2, module_urllib3$connection, sizeof(void *)+sizeof(void *) );
frame_44592aa602c1481bb93c466efba552f2 = cache_frame_44592aa602c1481bb93c466efba552f2;
// Push the new frame as the currently active one.
pushFrameStack( frame_44592aa602c1481bb93c466efba552f2 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_44592aa602c1481bb93c466efba552f2 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_assattr_target_1;
CHECK_OBJECT( par_value );
tmp_assattr_name_1 = par_value;
CHECK_OBJECT( par_self );
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__dns_host, tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 155;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_44592aa602c1481bb93c466efba552f2 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_44592aa602c1481bb93c466efba552f2 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_44592aa602c1481bb93c466efba552f2, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_44592aa602c1481bb93c466efba552f2->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_44592aa602c1481bb93c466efba552f2, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_44592aa602c1481bb93c466efba552f2,
type_description_1,
par_self,
par_value
);
// Release cached frame.
if ( frame_44592aa602c1481bb93c466efba552f2 == cache_frame_44592aa602c1481bb93c466efba552f2 )
{
Py_DECREF( frame_44592aa602c1481bb93c466efba552f2 );
}
cache_frame_44592aa602c1481bb93c466efba552f2 = NULL;
assertFrameObject( frame_44592aa602c1481bb93c466efba552f2 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_3_host );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_value );
par_value = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_value );
par_value = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto function_exception_exit;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_3_host );
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$connection$$$function_4__new_conn( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *var_extra_kw = NULL;
PyObject *var_conn = NULL;
PyObject *var_e = NULL;
struct Nuitka_FrameObject *frame_e78847097403aeb71e00b52a5ab6269a;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
bool tmp_result;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
PyObject *exception_preserved_type_1;
PyObject *exception_preserved_value_1;
PyTracebackObject *exception_preserved_tb_1;
int tmp_res;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
PyObject *exception_keeper_type_3;
PyObject *exception_keeper_value_3;
PyTracebackObject *exception_keeper_tb_3;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
PyObject *exception_keeper_type_4;
PyObject *exception_keeper_value_4;
PyTracebackObject *exception_keeper_tb_4;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
static struct Nuitka_FrameObject *cache_frame_e78847097403aeb71e00b52a5ab6269a = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_5;
PyObject *exception_keeper_value_5;
PyTracebackObject *exception_keeper_tb_5;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5;
// Actual function code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = PyDict_New();
assert( var_extra_kw == NULL );
var_extra_kw = tmp_assign_source_1;
}
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_e78847097403aeb71e00b52a5ab6269a, codeobj_e78847097403aeb71e00b52a5ab6269a, module_urllib3$connection, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_e78847097403aeb71e00b52a5ab6269a = cache_frame_e78847097403aeb71e00b52a5ab6269a;
// Push the new frame as the currently active one.
pushFrameStack( frame_e78847097403aeb71e00b52a5ab6269a );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_e78847097403aeb71e00b52a5ab6269a ) == 2 ); // Frame stack
// Framed code:
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_source_name_1;
PyObject *tmp_attribute_value_1;
int tmp_truth_name_1;
CHECK_OBJECT( par_self );
tmp_source_name_1 = par_self;
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_source_address );
if ( tmp_attribute_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 163;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_attribute_value_1 );
if ( tmp_truth_name_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_attribute_value_1 );
exception_lineno = 163;
type_description_1 = "oooo";
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_ass_subvalue_1;
PyObject *tmp_source_name_2;
PyObject *tmp_ass_subscribed_1;
PyObject *tmp_ass_subscript_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 164;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_source_name_2 = par_self;
tmp_ass_subvalue_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_source_address );
if ( tmp_ass_subvalue_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 164;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
if ( var_extra_kw == NULL )
{
Py_DECREF( tmp_ass_subvalue_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "extra_kw" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 164;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_ass_subscribed_1 = var_extra_kw;
tmp_ass_subscript_1 = const_str_plain_source_address;
tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1 );
Py_DECREF( tmp_ass_subvalue_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 164;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
}
branch_no_1:;
}
{
nuitka_bool tmp_condition_result_2;
PyObject *tmp_source_name_3;
PyObject *tmp_attribute_value_2;
int tmp_truth_name_2;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 166;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_source_name_3 = par_self;
tmp_attribute_value_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_socket_options );
if ( tmp_attribute_value_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 166;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_truth_name_2 = CHECK_IF_TRUE( tmp_attribute_value_2 );
if ( tmp_truth_name_2 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_attribute_value_2 );
exception_lineno = 166;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_condition_result_2 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_attribute_value_2 );
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
{
goto branch_yes_2;
}
else
{
goto branch_no_2;
}
branch_yes_2:;
{
PyObject *tmp_ass_subvalue_2;
PyObject *tmp_source_name_4;
PyObject *tmp_ass_subscribed_2;
PyObject *tmp_ass_subscript_2;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 167;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_source_name_4 = par_self;
tmp_ass_subvalue_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_socket_options );
if ( tmp_ass_subvalue_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 167;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
if ( var_extra_kw == NULL )
{
Py_DECREF( tmp_ass_subvalue_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "extra_kw" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 167;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
tmp_ass_subscribed_2 = var_extra_kw;
tmp_ass_subscript_2 = const_str_plain_socket_options;
tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_2, tmp_ass_subscript_2, tmp_ass_subvalue_2 );
Py_DECREF( tmp_ass_subvalue_2 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 167;
type_description_1 = "oooo";
goto frame_exception_exit_1;
}
}
branch_no_2:;
}
{
// Tried code:
{
PyObject *tmp_assign_source_2;
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_source_name_5;
PyObject *tmp_mvar_value_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_tuple_element_2;
PyObject *tmp_source_name_6;
PyObject *tmp_source_name_7;
PyObject *tmp_source_name_8;
PyObject *tmp_dircall_arg3_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_connection );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_connection );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "connection" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 170;
type_description_1 = "oooo";
goto try_except_handler_2;
}
tmp_source_name_5 = tmp_mvar_value_1;
tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_create_connection );
if ( tmp_dircall_arg1_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 170;
type_description_1 = "oooo";
goto try_except_handler_2;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 171;
type_description_1 = "oooo";
goto try_except_handler_2;
}
tmp_source_name_6 = par_self;
tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain__dns_host );
if ( tmp_tuple_element_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_dircall_arg1_1 );
exception_lineno = 171;
type_description_1 = "oooo";
goto try_except_handler_2;
}
tmp_tuple_element_1 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_tuple_element_1, 0, tmp_tuple_element_2 );
if ( par_self == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_tuple_element_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 171;
type_description_1 = "oooo";
goto try_except_handler_2;
}
tmp_source_name_7 = par_self;
tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_port );
if ( tmp_tuple_element_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_tuple_element_1 );
exception_lineno = 171;
type_description_1 = "oooo";
goto try_except_handler_2;
}
PyTuple_SET_ITEM( tmp_tuple_element_1, 1, tmp_tuple_element_2 );
tmp_dircall_arg2_1 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_dircall_arg2_1, 0, tmp_tuple_element_1 );
if ( par_self == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 171;
type_description_1 = "oooo";
goto try_except_handler_2;
}
tmp_source_name_8 = par_self;
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_timeout );
if ( tmp_tuple_element_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
exception_lineno = 171;
type_description_1 = "oooo";
goto try_except_handler_2;
}
PyTuple_SET_ITEM( tmp_dircall_arg2_1, 1, tmp_tuple_element_1 );
if ( var_extra_kw == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "extra_kw" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 171;
type_description_1 = "oooo";
goto try_except_handler_2;
}
tmp_dircall_arg3_1 = var_extra_kw;
Py_INCREF( tmp_dircall_arg3_1 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_assign_source_2 = impl___internal__$$$function_5_complex_call_helper_pos_star_dict( dir_call_args );
}
if ( tmp_assign_source_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 170;
type_description_1 = "oooo";
goto try_except_handler_2;
}
assert( var_conn == NULL );
var_conn = tmp_assign_source_2;
}
goto try_end_1;
// Exception handler code:
try_except_handler_2:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Preserve existing published exception.
exception_preserved_type_1 = EXC_TYPE(PyThreadState_GET());
Py_XINCREF( exception_preserved_type_1 );
exception_preserved_value_1 = EXC_VALUE(PyThreadState_GET());
Py_XINCREF( exception_preserved_value_1 );
exception_preserved_tb_1 = (PyTracebackObject *)EXC_TRACEBACK(PyThreadState_GET());
Py_XINCREF( exception_preserved_tb_1 );
}
{
if ( exception_keeper_tb_1 == NULL )
{
exception_keeper_tb_1 = MAKE_TRACEBACK( frame_e78847097403aeb71e00b52a5ab6269a, exception_keeper_lineno_1 );
}
else if ( exception_keeper_lineno_1 != 0 )
{
exception_keeper_tb_1 = ADD_TRACEBACK( exception_keeper_tb_1, frame_e78847097403aeb71e00b52a5ab6269a, exception_keeper_lineno_1 );
}
NORMALIZE_EXCEPTION( &exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1 );
PyException_SetTraceback( exception_keeper_value_1, (PyObject *)exception_keeper_tb_1 );
PUBLISH_EXCEPTION( &exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1 );
}
{
// Tried code:
{
nuitka_bool tmp_condition_result_3;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
PyObject *tmp_mvar_value_2;
tmp_compexpr_left_1 = EXC_TYPE(PyThreadState_GET());
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_SocketTimeout );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_SocketTimeout );
}
if ( tmp_mvar_value_2 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "SocketTimeout" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 173;
type_description_1 = "oooo";
goto try_except_handler_3;
}
tmp_compexpr_right_1 = tmp_mvar_value_2;
tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_1, tmp_compexpr_right_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 173;
type_description_1 = "oooo";
goto try_except_handler_3;
}
tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
{
goto branch_yes_3;
}
else
{
goto branch_no_3;
}
branch_yes_3:;
{
PyObject *tmp_assign_source_3;
tmp_assign_source_3 = EXC_VALUE(PyThreadState_GET());
assert( var_e == NULL );
Py_INCREF( tmp_assign_source_3 );
var_e = tmp_assign_source_3;
}
{
// Tried code:
{
PyObject *tmp_raise_type_1;
PyObject *tmp_called_name_1;
PyObject *tmp_mvar_value_3;
PyObject *tmp_args_element_name_1;
PyObject *tmp_args_element_name_2;
PyObject *tmp_left_name_1;
PyObject *tmp_right_name_1;
PyObject *tmp_tuple_element_3;
PyObject *tmp_source_name_9;
PyObject *tmp_source_name_10;
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ConnectTimeoutError );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ConnectTimeoutError );
}
if ( tmp_mvar_value_3 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ConnectTimeoutError" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 174;
type_description_1 = "oooo";
goto try_except_handler_4;
}
tmp_called_name_1 = tmp_mvar_value_3;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 175;
type_description_1 = "oooo";
goto try_except_handler_4;
}
tmp_args_element_name_1 = par_self;
tmp_left_name_1 = const_str_digest_03224f9e3167cae45c1e00020c2975eb;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 176;
type_description_1 = "oooo";
goto try_except_handler_4;
}
tmp_source_name_9 = par_self;
tmp_tuple_element_3 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_host );
if ( tmp_tuple_element_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 176;
type_description_1 = "oooo";
goto try_except_handler_4;
}
tmp_right_name_1 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_3 );
if ( par_self == NULL )
{
Py_DECREF( tmp_right_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 176;
type_description_1 = "oooo";
goto try_except_handler_4;
}
tmp_source_name_10 = par_self;
tmp_tuple_element_3 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_timeout );
if ( tmp_tuple_element_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_right_name_1 );
exception_lineno = 176;
type_description_1 = "oooo";
goto try_except_handler_4;
}
PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_3 );
tmp_args_element_name_2 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 );
Py_DECREF( tmp_right_name_1 );
if ( tmp_args_element_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 175;
type_description_1 = "oooo";
goto try_except_handler_4;
}
frame_e78847097403aeb71e00b52a5ab6269a->m_frame.f_lineno = 174;
{
PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 };
tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_args_element_name_2 );
if ( tmp_raise_type_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 174;
type_description_1 = "oooo";
goto try_except_handler_4;
}
exception_type = tmp_raise_type_1;
exception_lineno = 174;
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooo";
goto try_except_handler_4;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_4__new_conn );
return NULL;
// Exception handler code:
try_except_handler_4:;
exception_keeper_type_2 = exception_type;
exception_keeper_value_2 = exception_value;
exception_keeper_tb_2 = exception_tb;
exception_keeper_lineno_2 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( var_e );
var_e = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_2;
exception_value = exception_keeper_value_2;
exception_tb = exception_keeper_tb_2;
exception_lineno = exception_keeper_lineno_2;
goto try_except_handler_3;
}
// End of try:
}
goto branch_end_3;
branch_no_3:;
{
nuitka_bool tmp_condition_result_4;
PyObject *tmp_compexpr_left_2;
PyObject *tmp_compexpr_right_2;
PyObject *tmp_mvar_value_4;
tmp_compexpr_left_2 = EXC_TYPE(PyThreadState_GET());
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_SocketError );
if (unlikely( tmp_mvar_value_4 == NULL ))
{
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_SocketError );
}
if ( tmp_mvar_value_4 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "SocketError" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 178;
type_description_1 = "oooo";
goto try_except_handler_3;
}
tmp_compexpr_right_2 = tmp_mvar_value_4;
tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_2, tmp_compexpr_right_2 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 178;
type_description_1 = "oooo";
goto try_except_handler_3;
}
tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
{
goto branch_yes_4;
}
else
{
goto branch_no_4;
}
branch_yes_4:;
{
PyObject *tmp_assign_source_4;
tmp_assign_source_4 = EXC_VALUE(PyThreadState_GET());
{
PyObject *old = var_e;
var_e = tmp_assign_source_4;
Py_INCREF( var_e );
Py_XDECREF( old );
}
}
{
// Tried code:
{
PyObject *tmp_raise_type_2;
PyObject *tmp_called_name_2;
PyObject *tmp_mvar_value_5;
PyObject *tmp_args_element_name_3;
PyObject *tmp_args_element_name_4;
PyObject *tmp_left_name_2;
PyObject *tmp_right_name_2;
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_NewConnectionError );
if (unlikely( tmp_mvar_value_5 == NULL ))
{
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_NewConnectionError );
}
if ( tmp_mvar_value_5 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "NewConnectionError" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 179;
type_description_1 = "oooo";
goto try_except_handler_5;
}
tmp_called_name_2 = tmp_mvar_value_5;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 180;
type_description_1 = "oooo";
goto try_except_handler_5;
}
tmp_args_element_name_3 = par_self;
tmp_left_name_2 = const_str_digest_a93bc1dc732be398b86f8538baa37185;
CHECK_OBJECT( var_e );
tmp_right_name_2 = var_e;
tmp_args_element_name_4 = BINARY_OPERATION_REMAINDER( tmp_left_name_2, tmp_right_name_2 );
if ( tmp_args_element_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 180;
type_description_1 = "oooo";
goto try_except_handler_5;
}
frame_e78847097403aeb71e00b52a5ab6269a->m_frame.f_lineno = 179;
{
PyObject *call_args[] = { tmp_args_element_name_3, tmp_args_element_name_4 };
tmp_raise_type_2 = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_2, call_args );
}
Py_DECREF( tmp_args_element_name_4 );
if ( tmp_raise_type_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 179;
type_description_1 = "oooo";
goto try_except_handler_5;
}
exception_type = tmp_raise_type_2;
exception_lineno = 179;
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooo";
goto try_except_handler_5;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_4__new_conn );
return NULL;
// Exception handler code:
try_except_handler_5:;
exception_keeper_type_3 = exception_type;
exception_keeper_value_3 = exception_value;
exception_keeper_tb_3 = exception_tb;
exception_keeper_lineno_3 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( var_e );
var_e = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_3;
exception_value = exception_keeper_value_3;
exception_tb = exception_keeper_tb_3;
exception_lineno = exception_keeper_lineno_3;
goto try_except_handler_3;
}
// End of try:
}
goto branch_end_4;
branch_no_4:;
{
tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
if (unlikely( tmp_result == false ))
{
exception_lineno = 169;
}
if (exception_tb && exception_tb->tb_frame == &frame_e78847097403aeb71e00b52a5ab6269a->m_frame) frame_e78847097403aeb71e00b52a5ab6269a->m_frame.f_lineno = exception_tb->tb_lineno;
type_description_1 = "oooo";
goto try_except_handler_3;
}
branch_end_4:;
}
branch_end_3:;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_4__new_conn );
return NULL;
// Exception handler code:
try_except_handler_3:;
exception_keeper_type_4 = exception_type;
exception_keeper_value_4 = exception_value;
exception_keeper_tb_4 = exception_tb;
exception_keeper_lineno_4 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Restore previous exception.
SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 );
}
{
// Re-raise.
exception_type = exception_keeper_type_4;
exception_value = exception_keeper_value_4;
exception_tb = exception_keeper_tb_4;
exception_lineno = exception_keeper_lineno_4;
goto frame_exception_exit_1;
}
// End of try:
}
// End of try:
try_end_1:;
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_e78847097403aeb71e00b52a5ab6269a );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_e78847097403aeb71e00b52a5ab6269a );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_e78847097403aeb71e00b52a5ab6269a, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_e78847097403aeb71e00b52a5ab6269a->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_e78847097403aeb71e00b52a5ab6269a, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_e78847097403aeb71e00b52a5ab6269a,
type_description_1,
par_self,
var_extra_kw,
var_conn,
var_e
);
// Release cached frame.
if ( frame_e78847097403aeb71e00b52a5ab6269a == cache_frame_e78847097403aeb71e00b52a5ab6269a )
{
Py_DECREF( frame_e78847097403aeb71e00b52a5ab6269a );
}
cache_frame_e78847097403aeb71e00b52a5ab6269a = NULL;
assertFrameObject( frame_e78847097403aeb71e00b52a5ab6269a );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
CHECK_OBJECT( var_conn );
tmp_return_value = var_conn;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_4__new_conn );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_extra_kw );
var_extra_kw = NULL;
}
{
Py_XDECREF( var_conn );
var_conn = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_5 = exception_type;
exception_keeper_value_5 = exception_value;
exception_keeper_tb_5 = exception_tb;
exception_keeper_lineno_5 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_extra_kw );
var_extra_kw = NULL;
}
{
Py_XDECREF( var_e );
var_e = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_5;
exception_value = exception_keeper_value_5;
exception_tb = exception_keeper_tb_5;
exception_lineno = exception_keeper_lineno_5;
goto function_exception_exit;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_4__new_conn );
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$connection$$$function_5__prepare_conn( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_conn = python_pars[ 1 ];
struct Nuitka_FrameObject *frame_156f179f138a050c1e91739a9155edc0;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
bool tmp_result;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
static struct Nuitka_FrameObject *cache_frame_156f179f138a050c1e91739a9155edc0 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_156f179f138a050c1e91739a9155edc0, codeobj_156f179f138a050c1e91739a9155edc0, module_urllib3$connection, sizeof(void *)+sizeof(void *) );
frame_156f179f138a050c1e91739a9155edc0 = cache_frame_156f179f138a050c1e91739a9155edc0;
// Push the new frame as the currently active one.
pushFrameStack( frame_156f179f138a050c1e91739a9155edc0 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_156f179f138a050c1e91739a9155edc0 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_assattr_target_1;
CHECK_OBJECT( par_conn );
tmp_assattr_name_1 = par_conn;
CHECK_OBJECT( par_self );
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_sock, tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 185;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
}
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_getattr_target_1;
PyObject *tmp_getattr_attr_1;
PyObject *tmp_getattr_default_1;
PyObject *tmp_capi_result_1;
int tmp_truth_name_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 189;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_getattr_target_1 = par_self;
tmp_getattr_attr_1 = const_str_plain__tunnel_host;
tmp_getattr_default_1 = Py_None;
tmp_capi_result_1 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 );
if ( tmp_capi_result_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 189;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_capi_result_1 );
if ( tmp_truth_name_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_capi_result_1 );
exception_lineno = 189;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_condition_result_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_capi_result_1 );
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
PyObject *tmp_called_instance_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 191;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_called_instance_1 = par_self;
frame_156f179f138a050c1e91739a9155edc0->m_frame.f_lineno = 191;
tmp_unused = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain__tunnel );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 191;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
{
PyObject *tmp_assattr_name_2;
PyObject *tmp_assattr_target_2;
tmp_assattr_name_2 = const_int_0;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 193;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_assattr_target_2 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_auto_open, tmp_assattr_name_2 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 193;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
}
branch_no_1:;
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_156f179f138a050c1e91739a9155edc0 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_156f179f138a050c1e91739a9155edc0 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_156f179f138a050c1e91739a9155edc0, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_156f179f138a050c1e91739a9155edc0->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_156f179f138a050c1e91739a9155edc0, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_156f179f138a050c1e91739a9155edc0,
type_description_1,
par_self,
par_conn
);
// Release cached frame.
if ( frame_156f179f138a050c1e91739a9155edc0 == cache_frame_156f179f138a050c1e91739a9155edc0 )
{
Py_DECREF( frame_156f179f138a050c1e91739a9155edc0 );
}
cache_frame_156f179f138a050c1e91739a9155edc0 = NULL;
assertFrameObject( frame_156f179f138a050c1e91739a9155edc0 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_5__prepare_conn );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_conn );
par_conn = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_conn );
par_conn = 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$connection$$$function_5__prepare_conn );
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$connection$$$function_6_connect( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *var_conn = NULL;
struct Nuitka_FrameObject *frame_dd2d61ef46844522e3e2314213540cae;
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;
static struct Nuitka_FrameObject *cache_frame_dd2d61ef46844522e3e2314213540cae = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_dd2d61ef46844522e3e2314213540cae, codeobj_dd2d61ef46844522e3e2314213540cae, module_urllib3$connection, sizeof(void *)+sizeof(void *) );
frame_dd2d61ef46844522e3e2314213540cae = cache_frame_dd2d61ef46844522e3e2314213540cae;
// Push the new frame as the currently active one.
pushFrameStack( frame_dd2d61ef46844522e3e2314213540cae );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_dd2d61ef46844522e3e2314213540cae ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_instance_1;
CHECK_OBJECT( par_self );
tmp_called_instance_1 = par_self;
frame_dd2d61ef46844522e3e2314213540cae->m_frame.f_lineno = 196;
tmp_assign_source_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain__new_conn );
if ( tmp_assign_source_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 196;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
assert( var_conn == NULL );
var_conn = tmp_assign_source_1;
}
{
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_1;
PyObject *tmp_args_element_name_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 197;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = par_self;
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__prepare_conn );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 197;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( var_conn == 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", "conn" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 197;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_args_element_name_1 = var_conn;
frame_dd2d61ef46844522e3e2314213540cae->m_frame.f_lineno = 197;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 197;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_dd2d61ef46844522e3e2314213540cae );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_dd2d61ef46844522e3e2314213540cae );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_dd2d61ef46844522e3e2314213540cae, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_dd2d61ef46844522e3e2314213540cae->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_dd2d61ef46844522e3e2314213540cae, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_dd2d61ef46844522e3e2314213540cae,
type_description_1,
par_self,
var_conn
);
// Release cached frame.
if ( frame_dd2d61ef46844522e3e2314213540cae == cache_frame_dd2d61ef46844522e3e2314213540cae )
{
Py_DECREF( frame_dd2d61ef46844522e3e2314213540cae );
}
cache_frame_dd2d61ef46844522e3e2314213540cae = NULL;
assertFrameObject( frame_dd2d61ef46844522e3e2314213540cae );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_6_connect );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_conn );
var_conn = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_conn );
var_conn = 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$connection$$$function_6_connect );
return NULL;
function_exception_exit:
assert( exception_type );
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return NULL;
function_return_exit:
CHECK_OBJECT( tmp_return_value );
assert( had_error || !ERROR_OCCURRED() );
return tmp_return_value;
}
static PyObject *impl_urllib3$connection$$$function_7_request_chunked( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_method = python_pars[ 1 ];
PyObject *par_url = python_pars[ 2 ];
PyObject *par_body = python_pars[ 3 ];
PyObject *par_headers = python_pars[ 4 ];
PyObject *var_skip_accept_encoding = NULL;
PyObject *var_skip_host = NULL;
PyObject *var_header = NULL;
PyObject *var_value = NULL;
PyObject *var_stringish_types = NULL;
PyObject *var_chunk = NULL;
PyObject *var_len_str = NULL;
PyObject *tmp_for_loop_1__for_iterator = NULL;
PyObject *tmp_for_loop_1__iter_value = NULL;
PyObject *tmp_for_loop_2__for_iterator = NULL;
PyObject *tmp_for_loop_2__iter_value = NULL;
PyObject *tmp_tuple_unpack_1__element_1 = NULL;
PyObject *tmp_tuple_unpack_1__element_2 = NULL;
PyObject *tmp_tuple_unpack_1__source_iter = NULL;
struct Nuitka_FrameObject *frame_43e6aee7702f4fbda33aa3a06e013254;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
PyObject *tmp_iterator_attempt;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
PyObject *exception_keeper_type_3;
PyObject *exception_keeper_value_3;
PyTracebackObject *exception_keeper_tb_3;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
PyObject *exception_keeper_type_4;
PyObject *exception_keeper_value_4;
PyTracebackObject *exception_keeper_tb_4;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
static struct Nuitka_FrameObject *cache_frame_43e6aee7702f4fbda33aa3a06e013254 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_5;
PyObject *exception_keeper_value_5;
PyTracebackObject *exception_keeper_tb_5;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_43e6aee7702f4fbda33aa3a06e013254, codeobj_43e6aee7702f4fbda33aa3a06e013254, module_urllib3$connection, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_43e6aee7702f4fbda33aa3a06e013254 = cache_frame_43e6aee7702f4fbda33aa3a06e013254;
// Push the new frame as the currently active one.
pushFrameStack( frame_43e6aee7702f4fbda33aa3a06e013254 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_43e6aee7702f4fbda33aa3a06e013254 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_name_1;
PyObject *tmp_mvar_value_1;
PyObject *tmp_args_element_name_1;
nuitka_bool tmp_condition_result_1;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPHeaderDict );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_HTTPHeaderDict );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "HTTPHeaderDict" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 204;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_1 = tmp_mvar_value_1;
CHECK_OBJECT( par_headers );
tmp_compexpr_left_1 = par_headers;
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 condexpr_true_1;
}
else
{
goto condexpr_false_1;
}
condexpr_true_1:;
if ( par_headers == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "headers" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 204;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_1 = par_headers;
Py_INCREF( tmp_args_element_name_1 );
goto condexpr_end_1;
condexpr_false_1:;
tmp_args_element_name_1 = PyDict_New();
condexpr_end_1:;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 204;
{
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_args_element_name_1 );
if ( tmp_assign_source_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 204;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = par_headers;
par_headers = tmp_assign_source_1;
Py_XDECREF( old );
}
}
{
PyObject *tmp_assign_source_2;
PyObject *tmp_compexpr_left_2;
PyObject *tmp_compexpr_right_2;
tmp_compexpr_left_2 = const_str_digest_f4cf83dd2e7e2f235646bf31dc9dfbff;
CHECK_OBJECT( par_headers );
tmp_compexpr_right_2 = par_headers;
tmp_res = PySequence_Contains( tmp_compexpr_right_2, tmp_compexpr_left_2 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 205;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_2 = ( tmp_res == 1 ) ? Py_True : Py_False;
assert( var_skip_accept_encoding == NULL );
Py_INCREF( tmp_assign_source_2 );
var_skip_accept_encoding = tmp_assign_source_2;
}
{
PyObject *tmp_assign_source_3;
PyObject *tmp_compexpr_left_3;
PyObject *tmp_compexpr_right_3;
tmp_compexpr_left_3 = const_str_plain_host;
if ( par_headers == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "headers" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 206;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_compexpr_right_3 = par_headers;
tmp_res = PySequence_Contains( tmp_compexpr_right_3, tmp_compexpr_left_3 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 206;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_3 = ( tmp_res == 1 ) ? Py_True : Py_False;
assert( var_skip_host == NULL );
Py_INCREF( tmp_assign_source_3 );
var_skip_host = tmp_assign_source_3;
}
{
PyObject *tmp_called_name_2;
PyObject *tmp_source_name_1;
PyObject *tmp_args_name_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_kw_name_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_dict_key_2;
PyObject *tmp_dict_value_2;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 207;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = par_self;
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_putrequest );
if ( tmp_called_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 207;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
if ( par_method == NULL )
{
Py_DECREF( tmp_called_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "method" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 208;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_tuple_element_1 = par_method;
tmp_args_name_1 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_1 );
if ( par_url == NULL )
{
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_args_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "url" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 209;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_tuple_element_1 = par_url;
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_1 );
tmp_dict_key_1 = const_str_plain_skip_accept_encoding;
if ( var_skip_accept_encoding == NULL )
{
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_args_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "skip_accept_encoding" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 210;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = var_skip_accept_encoding;
tmp_kw_name_1 = _PyDict_NewPresized( 2 );
tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_1, tmp_dict_value_1 );
assert( !(tmp_res != 0) );
tmp_dict_key_2 = const_str_plain_skip_host;
if ( var_skip_host == NULL )
{
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_args_name_1 );
Py_DECREF( tmp_kw_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "skip_host" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 211;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_dict_value_2 = var_skip_host;
tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_2, tmp_dict_value_2 );
assert( !(tmp_res != 0) );
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 207;
tmp_unused = CALL_FUNCTION( tmp_called_name_2, tmp_args_name_1, tmp_kw_name_1 );
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_args_name_1 );
Py_DECREF( tmp_kw_name_1 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 207;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
{
PyObject *tmp_assign_source_4;
PyObject *tmp_iter_arg_1;
PyObject *tmp_called_instance_1;
if ( par_headers == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "headers" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 213;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_instance_1 = par_headers;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 213;
tmp_iter_arg_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_items );
if ( tmp_iter_arg_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 213;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_4 = MAKE_ITERATOR( tmp_iter_arg_1 );
Py_DECREF( tmp_iter_arg_1 );
if ( tmp_assign_source_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 213;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
assert( tmp_for_loop_1__for_iterator == NULL );
tmp_for_loop_1__for_iterator = tmp_assign_source_4;
}
{
// Tried code:
{
loop_start_1:;
{
PyObject *tmp_next_source_1;
PyObject *tmp_assign_source_5;
CHECK_OBJECT( tmp_for_loop_1__for_iterator );
tmp_next_source_1 = tmp_for_loop_1__for_iterator;
tmp_assign_source_5 = ITERATOR_NEXT( tmp_next_source_1 );
if ( tmp_assign_source_5 == NULL )
{
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
{
goto loop_end_1;
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooooooooooo";
exception_lineno = 213;
goto try_except_handler_2;
}
}
{
PyObject *old = tmp_for_loop_1__iter_value;
tmp_for_loop_1__iter_value = tmp_assign_source_5;
Py_XDECREF( old );
}
}
{
// Tried code:
{
PyObject *tmp_assign_source_6;
PyObject *tmp_iter_arg_2;
CHECK_OBJECT( tmp_for_loop_1__iter_value );
tmp_iter_arg_2 = tmp_for_loop_1__iter_value;
tmp_assign_source_6 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_2 );
if ( tmp_assign_source_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 213;
type_description_1 = "oooooooooooo";
goto try_except_handler_3;
}
{
PyObject *old = tmp_tuple_unpack_1__source_iter;
tmp_tuple_unpack_1__source_iter = tmp_assign_source_6;
Py_XDECREF( old );
}
}
{
// Tried code:
{
PyObject *tmp_assign_source_7;
PyObject *tmp_unpack_1;
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
tmp_unpack_1 = tmp_tuple_unpack_1__source_iter;
tmp_assign_source_7 = UNPACK_NEXT( tmp_unpack_1, 0, 2 );
if ( tmp_assign_source_7 == NULL )
{
if ( !ERROR_OCCURRED() )
{
exception_type = PyExc_StopIteration;
Py_INCREF( exception_type );
exception_value = NULL;
exception_tb = NULL;
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
}
type_description_1 = "oooooooooooo";
exception_lineno = 213;
goto try_except_handler_4;
}
{
PyObject *old = tmp_tuple_unpack_1__element_1;
tmp_tuple_unpack_1__element_1 = tmp_assign_source_7;
Py_XDECREF( old );
}
}
{
PyObject *tmp_assign_source_8;
PyObject *tmp_unpack_2;
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
tmp_unpack_2 = tmp_tuple_unpack_1__source_iter;
tmp_assign_source_8 = UNPACK_NEXT( tmp_unpack_2, 1, 2 );
if ( tmp_assign_source_8 == NULL )
{
if ( !ERROR_OCCURRED() )
{
exception_type = PyExc_StopIteration;
Py_INCREF( exception_type );
exception_value = NULL;
exception_tb = NULL;
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
}
type_description_1 = "oooooooooooo";
exception_lineno = 213;
goto try_except_handler_4;
}
{
PyObject *old = tmp_tuple_unpack_1__element_2;
tmp_tuple_unpack_1__element_2 = tmp_assign_source_8;
Py_XDECREF( old );
}
}
{
PyObject *tmp_iterator_name_1;
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter;
// Check if iterator has left-over elements.
CHECK_OBJECT( tmp_iterator_name_1 ); assert( HAS_ITERNEXT( tmp_iterator_name_1 ) );
tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 );
if (likely( tmp_iterator_attempt == NULL ))
{
PyObject *error = GET_ERROR_OCCURRED();
if ( error != NULL )
{
if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration ))
{
CLEAR_ERROR_OCCURRED();
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooooooooooo";
exception_lineno = 213;
goto try_except_handler_4;
}
}
}
else
{
Py_DECREF( tmp_iterator_attempt );
// TODO: Could avoid PyErr_Format.
#if PYTHON_VERSION < 300
PyErr_Format( PyExc_ValueError, "too many values to unpack" );
#else
PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" );
#endif
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooooooooooo";
exception_lineno = 213;
goto try_except_handler_4;
}
}
goto try_end_1;
// Exception handler code:
try_except_handler_4:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
Py_DECREF( tmp_tuple_unpack_1__source_iter );
tmp_tuple_unpack_1__source_iter = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto try_except_handler_3;
}
// End of try:
try_end_1:;
}
goto try_end_2;
// Exception handler code:
try_except_handler_3:;
exception_keeper_type_2 = exception_type;
exception_keeper_value_2 = exception_value;
exception_keeper_tb_2 = exception_tb;
exception_keeper_lineno_2 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
tmp_tuple_unpack_1__element_1 = NULL;
}
{
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
tmp_tuple_unpack_1__element_2 = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_2;
exception_value = exception_keeper_value_2;
exception_tb = exception_keeper_tb_2;
exception_lineno = exception_keeper_lineno_2;
goto try_except_handler_2;
}
// End of try:
try_end_2:;
}
{
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
Py_DECREF( tmp_tuple_unpack_1__source_iter );
tmp_tuple_unpack_1__source_iter = NULL;
}
{
PyObject *tmp_assign_source_9;
CHECK_OBJECT( tmp_tuple_unpack_1__element_1 );
tmp_assign_source_9 = tmp_tuple_unpack_1__element_1;
{
PyObject *old = var_header;
var_header = tmp_assign_source_9;
Py_INCREF( var_header );
Py_XDECREF( old );
}
}
{
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
tmp_tuple_unpack_1__element_1 = NULL;
}
{
PyObject *tmp_assign_source_10;
CHECK_OBJECT( tmp_tuple_unpack_1__element_2 );
tmp_assign_source_10 = tmp_tuple_unpack_1__element_2;
{
PyObject *old = var_value;
var_value = tmp_assign_source_10;
Py_INCREF( var_value );
Py_XDECREF( old );
}
}
{
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
tmp_tuple_unpack_1__element_2 = NULL;
}
{
PyObject *tmp_called_name_3;
PyObject *tmp_source_name_2;
PyObject *tmp_args_element_name_2;
PyObject *tmp_args_element_name_3;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 214;
type_description_1 = "oooooooooooo";
goto try_except_handler_2;
}
tmp_source_name_2 = par_self;
tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_putheader );
if ( tmp_called_name_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 214;
type_description_1 = "oooooooooooo";
goto try_except_handler_2;
}
if ( var_header == NULL )
{
Py_DECREF( tmp_called_name_3 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "header" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 214;
type_description_1 = "oooooooooooo";
goto try_except_handler_2;
}
tmp_args_element_name_2 = var_header;
if ( var_value == NULL )
{
Py_DECREF( tmp_called_name_3 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 214;
type_description_1 = "oooooooooooo";
goto try_except_handler_2;
}
tmp_args_element_name_3 = var_value;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 214;
{
PyObject *call_args[] = { tmp_args_element_name_2, tmp_args_element_name_3 };
tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_3, call_args );
}
Py_DECREF( tmp_called_name_3 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 214;
type_description_1 = "oooooooooooo";
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 = 213;
type_description_1 = "oooooooooooo";
goto try_except_handler_2;
}
goto loop_start_1;
loop_end_1:;
}
goto try_end_3;
// Exception handler code:
try_except_handler_2:;
exception_keeper_type_3 = exception_type;
exception_keeper_value_3 = exception_value;
exception_keeper_tb_3 = exception_tb;
exception_keeper_lineno_3 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_for_loop_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_3;
exception_value = exception_keeper_value_3;
exception_tb = exception_keeper_tb_3;
exception_lineno = exception_keeper_lineno_3;
goto frame_exception_exit_1;
}
// End of try:
try_end_3:;
}
{
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;
}
{
nuitka_bool tmp_condition_result_2;
PyObject *tmp_compexpr_left_4;
PyObject *tmp_compexpr_right_4;
tmp_compexpr_left_4 = const_str_digest_80cf594c6b193676cb3f905f65b5d391;
if ( par_headers == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "headers" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 215;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_compexpr_right_4 = par_headers;
tmp_res = PySequence_Contains( tmp_compexpr_right_4, tmp_compexpr_left_4 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 215;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_2 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
PyObject *tmp_called_instance_2;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 216;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_instance_2 = par_self;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 216;
tmp_unused = CALL_METHOD_WITH_ARGS2( tmp_called_instance_2, const_str_plain_putheader, &PyTuple_GET_ITEM( const_tuple_1bf7ec2364041a6038f313c34bc76226_tuple, 0 ) );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 216;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
branch_no_1:;
}
{
PyObject *tmp_called_instance_3;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 217;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_instance_3 = par_self;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 217;
tmp_unused = CALL_METHOD_NO_ARGS( tmp_called_instance_3, const_str_plain_endheaders );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 217;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
{
nuitka_bool tmp_condition_result_3;
PyObject *tmp_compexpr_left_5;
PyObject *tmp_compexpr_right_5;
if ( par_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 = 219;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_compexpr_left_5 = par_body;
tmp_compexpr_right_5 = Py_None;
tmp_condition_result_3 = ( tmp_compexpr_left_5 != tmp_compexpr_right_5 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
{
goto branch_yes_2;
}
else
{
goto branch_no_2;
}
branch_yes_2:;
{
PyObject *tmp_assign_source_11;
PyObject *tmp_left_name_1;
PyObject *tmp_source_name_3;
PyObject *tmp_mvar_value_2;
PyObject *tmp_right_name_1;
PyObject *tmp_tuple_element_2;
PyObject *tmp_source_name_4;
PyObject *tmp_mvar_value_3;
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_six );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_six );
}
if ( tmp_mvar_value_2 == 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 = 220;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_3 = tmp_mvar_value_2;
tmp_left_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_string_types );
if ( tmp_left_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 220;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (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 )
{
Py_DECREF( tmp_left_name_1 );
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 = 220;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_4 = tmp_mvar_value_3;
tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_binary_type );
if ( tmp_tuple_element_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_left_name_1 );
exception_lineno = 220;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_right_name_1 = PyTuple_New( 1 );
PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_2 );
tmp_assign_source_11 = BINARY_OPERATION_ADD( tmp_left_name_1, tmp_right_name_1 );
Py_DECREF( tmp_left_name_1 );
Py_DECREF( tmp_right_name_1 );
if ( tmp_assign_source_11 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 220;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
assert( var_stringish_types == NULL );
var_stringish_types = tmp_assign_source_11;
}
{
nuitka_bool tmp_condition_result_4;
PyObject *tmp_isinstance_inst_1;
PyObject *tmp_isinstance_cls_1;
if ( par_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 = 221;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_isinstance_inst_1 = par_body;
CHECK_OBJECT( var_stringish_types );
tmp_isinstance_cls_1 = var_stringish_types;
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 = 221;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
{
goto branch_yes_3;
}
else
{
goto branch_no_3;
}
branch_yes_3:;
{
PyObject *tmp_assign_source_12;
PyObject *tmp_tuple_element_3;
if ( par_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 = 222;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_tuple_element_3 = par_body;
tmp_assign_source_12 = PyTuple_New( 1 );
Py_INCREF( tmp_tuple_element_3 );
PyTuple_SET_ITEM( tmp_assign_source_12, 0, tmp_tuple_element_3 );
{
PyObject *old = par_body;
par_body = tmp_assign_source_12;
Py_XDECREF( old );
}
}
branch_no_3:;
}
{
PyObject *tmp_assign_source_13;
PyObject *tmp_iter_arg_3;
if ( par_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 = 223;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_iter_arg_3 = par_body;
tmp_assign_source_13 = MAKE_ITERATOR( tmp_iter_arg_3 );
if ( tmp_assign_source_13 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 223;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
assert( tmp_for_loop_2__for_iterator == NULL );
tmp_for_loop_2__for_iterator = tmp_assign_source_13;
}
{
// Tried code:
{
loop_start_2:;
{
PyObject *tmp_next_source_2;
PyObject *tmp_assign_source_14;
CHECK_OBJECT( tmp_for_loop_2__for_iterator );
tmp_next_source_2 = tmp_for_loop_2__for_iterator;
tmp_assign_source_14 = ITERATOR_NEXT( tmp_next_source_2 );
if ( tmp_assign_source_14 == NULL )
{
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
{
goto loop_end_2;
}
else
{
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooooooooooo";
exception_lineno = 223;
goto try_except_handler_5;
}
}
{
PyObject *old = tmp_for_loop_2__iter_value;
tmp_for_loop_2__iter_value = tmp_assign_source_14;
Py_XDECREF( old );
}
}
{
PyObject *tmp_assign_source_15;
CHECK_OBJECT( tmp_for_loop_2__iter_value );
tmp_assign_source_15 = tmp_for_loop_2__iter_value;
{
PyObject *old = var_chunk;
var_chunk = tmp_assign_source_15;
Py_INCREF( var_chunk );
Py_XDECREF( old );
}
}
{
nuitka_bool tmp_condition_result_5;
PyObject *tmp_operand_name_1;
CHECK_OBJECT( var_chunk );
tmp_operand_name_1 = var_chunk;
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 224;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_condition_result_5 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
{
goto branch_yes_4;
}
else
{
goto branch_no_4;
}
branch_yes_4:;
{
goto loop_start_2;
}
branch_no_4:;
}
{
nuitka_bool tmp_condition_result_6;
PyObject *tmp_operand_name_2;
PyObject *tmp_isinstance_inst_2;
PyObject *tmp_isinstance_cls_2;
PyObject *tmp_source_name_5;
PyObject *tmp_mvar_value_4;
if ( var_chunk == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "chunk" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 226;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_isinstance_inst_2 = var_chunk;
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_six );
if (unlikely( tmp_mvar_value_4 == NULL ))
{
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_six );
}
if ( tmp_mvar_value_4 == 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 = 226;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_source_name_5 = tmp_mvar_value_4;
tmp_isinstance_cls_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_binary_type );
if ( tmp_isinstance_cls_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 226;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
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 = 226;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_operand_name_2 = ( tmp_res != 0 ) ? Py_True : Py_False;
tmp_res = CHECK_IF_TRUE( tmp_operand_name_2 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 226;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_condition_result_6 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE )
{
goto branch_yes_5;
}
else
{
goto branch_no_5;
}
branch_yes_5:;
{
PyObject *tmp_assign_source_16;
PyObject *tmp_called_instance_4;
if ( var_chunk == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "chunk" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 227;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_called_instance_4 = var_chunk;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 227;
tmp_assign_source_16 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_4, const_str_plain_encode, &PyTuple_GET_ITEM( const_tuple_str_plain_utf8_tuple, 0 ) );
if ( tmp_assign_source_16 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 227;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
{
PyObject *old = var_chunk;
var_chunk = tmp_assign_source_16;
Py_XDECREF( old );
}
}
branch_no_5:;
}
{
PyObject *tmp_assign_source_17;
PyObject *tmp_subscribed_name_1;
PyObject *tmp_hex_arg_1;
PyObject *tmp_len_arg_1;
PyObject *tmp_subscript_name_1;
if ( var_chunk == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "chunk" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 228;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_len_arg_1 = var_chunk;
tmp_hex_arg_1 = BUILTIN_LEN( tmp_len_arg_1 );
if ( tmp_hex_arg_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 228;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_subscribed_name_1 = BUILTIN_HEX( tmp_hex_arg_1 );
Py_DECREF( tmp_hex_arg_1 );
if ( tmp_subscribed_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 228;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_subscript_name_1 = const_slice_int_pos_2_none_none;
tmp_assign_source_17 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 );
Py_DECREF( tmp_subscribed_name_1 );
if ( tmp_assign_source_17 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 228;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
{
PyObject *old = var_len_str;
var_len_str = tmp_assign_source_17;
Py_XDECREF( old );
}
}
{
PyObject *tmp_called_name_4;
PyObject *tmp_source_name_6;
PyObject *tmp_args_element_name_4;
PyObject *tmp_called_instance_5;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 229;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_source_name_6 = par_self;
tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_send );
if ( tmp_called_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 229;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
if ( var_len_str == 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", "len_str" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 229;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_called_instance_5 = var_len_str;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 229;
tmp_args_element_name_4 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_5, const_str_plain_encode, &PyTuple_GET_ITEM( const_tuple_str_digest_c075052d723d6707083e869a0e3659bb_tuple, 0 ) );
if ( tmp_args_element_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_4 );
exception_lineno = 229;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 229;
{
PyObject *call_args[] = { tmp_args_element_name_4 };
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args );
}
Py_DECREF( tmp_called_name_4 );
Py_DECREF( tmp_args_element_name_4 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 229;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
Py_DECREF( tmp_unused );
}
{
PyObject *tmp_called_instance_6;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 230;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_called_instance_6 = par_self;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 230;
tmp_unused = CALL_METHOD_WITH_ARGS1( tmp_called_instance_6, const_str_plain_send, &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 = 230;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
Py_DECREF( tmp_unused );
}
{
PyObject *tmp_called_name_5;
PyObject *tmp_source_name_7;
PyObject *tmp_args_element_name_5;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 231;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_source_name_7 = par_self;
tmp_called_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_send );
if ( tmp_called_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 231;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
if ( var_chunk == NULL )
{
Py_DECREF( tmp_called_name_5 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "chunk" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 231;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_args_element_name_5 = var_chunk;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 231;
{
PyObject *call_args[] = { tmp_args_element_name_5 };
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_5, call_args );
}
Py_DECREF( tmp_called_name_5 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 231;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
Py_DECREF( tmp_unused );
}
{
PyObject *tmp_called_instance_7;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 232;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
tmp_called_instance_7 = par_self;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 232;
tmp_unused = CALL_METHOD_WITH_ARGS1( tmp_called_instance_7, const_str_plain_send, &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 = 232;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
Py_DECREF( tmp_unused );
}
if ( CONSIDER_THREADING() == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 223;
type_description_1 = "oooooooooooo";
goto try_except_handler_5;
}
goto loop_start_2;
loop_end_2:;
}
goto try_end_4;
// Exception handler code:
try_except_handler_5:;
exception_keeper_type_4 = exception_type;
exception_keeper_value_4 = exception_value;
exception_keeper_tb_4 = exception_tb;
exception_keeper_lineno_4 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_for_loop_2__iter_value );
tmp_for_loop_2__iter_value = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_for_loop_2__for_iterator );
Py_DECREF( tmp_for_loop_2__for_iterator );
tmp_for_loop_2__for_iterator = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_4;
exception_value = exception_keeper_value_4;
exception_tb = exception_keeper_tb_4;
exception_lineno = exception_keeper_lineno_4;
goto frame_exception_exit_1;
}
// End of try:
try_end_4:;
}
{
Py_XDECREF( tmp_for_loop_2__iter_value );
tmp_for_loop_2__iter_value = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_for_loop_2__for_iterator );
Py_DECREF( tmp_for_loop_2__for_iterator );
tmp_for_loop_2__for_iterator = NULL;
}
branch_no_2:;
}
{
PyObject *tmp_called_instance_8;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 235;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
tmp_called_instance_8 = par_self;
frame_43e6aee7702f4fbda33aa3a06e013254->m_frame.f_lineno = 235;
tmp_unused = CALL_METHOD_WITH_ARGS1( tmp_called_instance_8, const_str_plain_send, &PyTuple_GET_ITEM( const_tuple_bytes_digest_103d73ccb44d3ba17b2afce6d3b01e78_tuple, 0 ) );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 235;
type_description_1 = "oooooooooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_43e6aee7702f4fbda33aa3a06e013254 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_43e6aee7702f4fbda33aa3a06e013254 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_43e6aee7702f4fbda33aa3a06e013254, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_43e6aee7702f4fbda33aa3a06e013254->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_43e6aee7702f4fbda33aa3a06e013254, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_43e6aee7702f4fbda33aa3a06e013254,
type_description_1,
par_self,
par_method,
par_url,
par_body,
par_headers,
var_skip_accept_encoding,
var_skip_host,
var_header,
var_value,
var_stringish_types,
var_chunk,
var_len_str
);
// Release cached frame.
if ( frame_43e6aee7702f4fbda33aa3a06e013254 == cache_frame_43e6aee7702f4fbda33aa3a06e013254 )
{
Py_DECREF( frame_43e6aee7702f4fbda33aa3a06e013254 );
}
cache_frame_43e6aee7702f4fbda33aa3a06e013254 = NULL;
assertFrameObject( frame_43e6aee7702f4fbda33aa3a06e013254 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_7_request_chunked );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_method );
par_method = NULL;
}
{
Py_XDECREF( par_url );
par_url = NULL;
}
{
Py_XDECREF( par_body );
par_body = NULL;
}
{
Py_XDECREF( par_headers );
par_headers = NULL;
}
{
Py_XDECREF( var_skip_accept_encoding );
var_skip_accept_encoding = NULL;
}
{
Py_XDECREF( var_skip_host );
var_skip_host = NULL;
}
{
Py_XDECREF( var_header );
var_header = NULL;
}
{
Py_XDECREF( var_value );
var_value = NULL;
}
{
Py_XDECREF( var_stringish_types );
var_stringish_types = NULL;
}
{
Py_XDECREF( var_chunk );
var_chunk = NULL;
}
{
Py_XDECREF( var_len_str );
var_len_str = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_5 = exception_type;
exception_keeper_value_5 = exception_value;
exception_keeper_tb_5 = exception_tb;
exception_keeper_lineno_5 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_method );
par_method = NULL;
}
{
Py_XDECREF( par_url );
par_url = NULL;
}
{
Py_XDECREF( par_body );
par_body = NULL;
}
{
Py_XDECREF( par_headers );
par_headers = NULL;
}
{
Py_XDECREF( var_skip_accept_encoding );
var_skip_accept_encoding = NULL;
}
{
Py_XDECREF( var_skip_host );
var_skip_host = NULL;
}
{
Py_XDECREF( var_header );
var_header = NULL;
}
{
Py_XDECREF( var_value );
var_value = NULL;
}
{
Py_XDECREF( var_stringish_types );
var_stringish_types = NULL;
}
{
Py_XDECREF( var_chunk );
var_chunk = NULL;
}
{
Py_XDECREF( var_len_str );
var_len_str = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_5;
exception_value = exception_keeper_value_5;
exception_tb = exception_keeper_tb_5;
exception_lineno = exception_keeper_lineno_5;
goto function_exception_exit;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_7_request_chunked );
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$connection$$$function_8___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_host = python_pars[ 1 ];
PyObject *par_port = python_pars[ 2 ];
PyObject *par_key_file = python_pars[ 3 ];
PyObject *par_cert_file = python_pars[ 4 ];
PyObject *par_strict = python_pars[ 5 ];
PyObject *par_timeout = python_pars[ 6 ];
PyObject *par_ssl_context = python_pars[ 7 ];
PyObject *par_kw = python_pars[ 8 ];
struct Nuitka_FrameObject *frame_241d2e5304967bbe85bd4aa540337435;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
bool tmp_result;
static struct Nuitka_FrameObject *cache_frame_241d2e5304967bbe85bd4aa540337435 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_241d2e5304967bbe85bd4aa540337435, codeobj_241d2e5304967bbe85bd4aa540337435, module_urllib3$connection, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_241d2e5304967bbe85bd4aa540337435 = cache_frame_241d2e5304967bbe85bd4aa540337435;
// Push the new frame as the currently active one.
pushFrameStack( frame_241d2e5304967bbe85bd4aa540337435 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_241d2e5304967bbe85bd4aa540337435 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_source_name_1;
PyObject *tmp_mvar_value_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_dircall_arg3_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_dict_key_2;
PyObject *tmp_dict_value_2;
PyObject *tmp_dircall_arg4_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPConnection );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_HTTPConnection );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "HTTPConnection" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 247;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = tmp_mvar_value_1;
tmp_dircall_arg1_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain___init__ );
if ( tmp_dircall_arg1_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 247;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 247;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_tuple_element_1 = par_self;
tmp_dircall_arg2_1 = PyTuple_New( 3 );
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_dircall_arg2_1, 0, tmp_tuple_element_1 );
if ( par_host == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "host" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 247;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_tuple_element_1 = par_host;
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_dircall_arg2_1, 1, tmp_tuple_element_1 );
if ( par_port == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "port" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 247;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_tuple_element_1 = par_port;
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_dircall_arg2_1, 2, tmp_tuple_element_1 );
tmp_dict_key_1 = const_str_plain_strict;
if ( par_strict == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "strict" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 247;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = par_strict;
tmp_dircall_arg3_1 = _PyDict_NewPresized( 2 );
tmp_res = PyDict_SetItem( tmp_dircall_arg3_1, tmp_dict_key_1, tmp_dict_value_1 );
assert( !(tmp_res != 0) );
tmp_dict_key_2 = const_str_plain_timeout;
if ( par_timeout == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
Py_DECREF( tmp_dircall_arg3_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "timeout" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 248;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_dict_value_2 = par_timeout;
tmp_res = PyDict_SetItem( tmp_dircall_arg3_1, tmp_dict_key_2, tmp_dict_value_2 );
assert( !(tmp_res != 0) );
if ( par_kw == NULL )
{
Py_DECREF( tmp_dircall_arg1_1 );
Py_DECREF( tmp_dircall_arg2_1 );
Py_DECREF( tmp_dircall_arg3_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "kw" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 248;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_dircall_arg4_1 = par_kw;
Py_INCREF( tmp_dircall_arg4_1 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1, tmp_dircall_arg4_1};
tmp_unused = impl___internal__$$$function_8_complex_call_helper_pos_keywords_star_dict( dir_call_args );
}
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 247;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_assattr_target_1;
if ( par_key_file == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "key_file" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 250;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_1 = par_key_file;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 250;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_key_file, tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 250;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_2;
PyObject *tmp_assattr_target_2;
if ( par_cert_file == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cert_file" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 251;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_2 = par_cert_file;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 251;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_2 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_cert_file, tmp_assattr_name_2 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 251;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_3;
PyObject *tmp_assattr_target_3;
if ( par_ssl_context == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "ssl_context" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 252;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_3 = par_ssl_context;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 252;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_3 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain_ssl_context, tmp_assattr_name_3 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 252;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_4;
PyObject *tmp_assattr_target_4;
tmp_assattr_name_4 = const_str_plain_https;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 256;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_4 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain__protocol, tmp_assattr_name_4 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 256;
type_description_1 = "ooooooooo";
goto frame_exception_exit_1;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_241d2e5304967bbe85bd4aa540337435 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_241d2e5304967bbe85bd4aa540337435 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_241d2e5304967bbe85bd4aa540337435, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_241d2e5304967bbe85bd4aa540337435->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_241d2e5304967bbe85bd4aa540337435, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_241d2e5304967bbe85bd4aa540337435,
type_description_1,
par_self,
par_host,
par_port,
par_key_file,
par_cert_file,
par_strict,
par_timeout,
par_ssl_context,
par_kw
);
// Release cached frame.
if ( frame_241d2e5304967bbe85bd4aa540337435 == cache_frame_241d2e5304967bbe85bd4aa540337435 )
{
Py_DECREF( frame_241d2e5304967bbe85bd4aa540337435 );
}
cache_frame_241d2e5304967bbe85bd4aa540337435 = NULL;
assertFrameObject( frame_241d2e5304967bbe85bd4aa540337435 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_8___init__ );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_host );
par_host = NULL;
}
{
Py_XDECREF( par_port );
par_port = NULL;
}
{
Py_XDECREF( par_key_file );
par_key_file = NULL;
}
{
Py_XDECREF( par_cert_file );
par_cert_file = NULL;
}
{
Py_XDECREF( par_strict );
par_strict = NULL;
}
{
Py_XDECREF( par_timeout );
par_timeout = NULL;
}
{
Py_XDECREF( par_ssl_context );
par_ssl_context = NULL;
}
{
Py_XDECREF( par_kw );
par_kw = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_host );
par_host = NULL;
}
{
Py_XDECREF( par_port );
par_port = NULL;
}
{
Py_XDECREF( par_key_file );
par_key_file = NULL;
}
{
Py_XDECREF( par_cert_file );
par_cert_file = NULL;
}
{
Py_XDECREF( par_strict );
par_strict = NULL;
}
{
Py_XDECREF( par_timeout );
par_timeout = NULL;
}
{
Py_XDECREF( par_ssl_context );
par_ssl_context = NULL;
}
{
Py_XDECREF( par_kw );
par_kw = 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$connection$$$function_8___init__ );
return NULL;
function_exception_exit:
assert( exception_type );
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return NULL;
function_return_exit:
CHECK_OBJECT( tmp_return_value );
assert( had_error || !ERROR_OCCURRED() );
return tmp_return_value;
}
static PyObject *impl_urllib3$connection$$$function_9_connect( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *var_conn = NULL;
struct Nuitka_FrameObject *frame_91b7e99f47caf9423225d6a9ed7fc75f;
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;
bool tmp_result;
static struct Nuitka_FrameObject *cache_frame_91b7e99f47caf9423225d6a9ed7fc75f = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_91b7e99f47caf9423225d6a9ed7fc75f, codeobj_91b7e99f47caf9423225d6a9ed7fc75f, module_urllib3$connection, sizeof(void *)+sizeof(void *) );
frame_91b7e99f47caf9423225d6a9ed7fc75f = cache_frame_91b7e99f47caf9423225d6a9ed7fc75f;
// Push the new frame as the currently active one.
pushFrameStack( frame_91b7e99f47caf9423225d6a9ed7fc75f );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_91b7e99f47caf9423225d6a9ed7fc75f ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_instance_1;
CHECK_OBJECT( par_self );
tmp_called_instance_1 = par_self;
frame_91b7e99f47caf9423225d6a9ed7fc75f->m_frame.f_lineno = 259;
tmp_assign_source_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain__new_conn );
if ( tmp_assign_source_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 259;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
assert( var_conn == NULL );
var_conn = tmp_assign_source_1;
}
{
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_1;
PyObject *tmp_args_element_name_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 260;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = par_self;
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__prepare_conn );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 260;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( var_conn == 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", "conn" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 260;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_args_element_name_1 = var_conn;
frame_91b7e99f47caf9423225d6a9ed7fc75f->m_frame.f_lineno = 260;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 260;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
PyObject *tmp_source_name_2;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 262;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_2 = par_self;
tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_ssl_context );
if ( tmp_compexpr_left_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 262;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_compexpr_right_1 = Py_None;
tmp_condition_result_1 = ( tmp_compexpr_left_1 == tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_compexpr_left_1 );
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_called_name_2;
PyObject *tmp_mvar_value_1;
PyObject *tmp_kw_name_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_called_name_3;
PyObject *tmp_mvar_value_2;
PyObject *tmp_dict_key_2;
PyObject *tmp_dict_value_2;
PyObject *tmp_called_name_4;
PyObject *tmp_mvar_value_3;
PyObject *tmp_assattr_target_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_create_urllib3_context );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_create_urllib3_context );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "create_urllib3_context" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 263;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_called_name_2 = tmp_mvar_value_1;
tmp_dict_key_1 = const_str_plain_ssl_version;
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_resolve_ssl_version );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_resolve_ssl_version );
}
if ( tmp_mvar_value_2 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "resolve_ssl_version" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 264;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_called_name_3 = tmp_mvar_value_2;
frame_91b7e99f47caf9423225d6a9ed7fc75f->m_frame.f_lineno = 264;
tmp_dict_value_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, &PyTuple_GET_ITEM( const_tuple_none_tuple, 0 ) );
if ( tmp_dict_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 264;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_kw_name_1 = _PyDict_NewPresized( 2 );
tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_1, tmp_dict_value_1 );
Py_DECREF( tmp_dict_value_1 );
assert( !(tmp_res != 0) );
tmp_dict_key_2 = const_str_plain_cert_reqs;
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_resolve_cert_reqs );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_resolve_cert_reqs );
}
if ( tmp_mvar_value_3 == NULL )
{
Py_DECREF( tmp_kw_name_1 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "resolve_cert_reqs" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 265;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_called_name_4 = tmp_mvar_value_3;
frame_91b7e99f47caf9423225d6a9ed7fc75f->m_frame.f_lineno = 265;
tmp_dict_value_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, &PyTuple_GET_ITEM( const_tuple_none_tuple, 0 ) );
if ( tmp_dict_value_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_1 );
exception_lineno = 265;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_2, tmp_dict_value_2 );
Py_DECREF( tmp_dict_value_2 );
assert( !(tmp_res != 0) );
frame_91b7e99f47caf9423225d6a9ed7fc75f->m_frame.f_lineno = 263;
tmp_assattr_name_1 = CALL_FUNCTION_WITH_KEYARGS( tmp_called_name_2, tmp_kw_name_1 );
Py_DECREF( tmp_kw_name_1 );
if ( tmp_assattr_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 263;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 263;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_ssl_context, tmp_assattr_name_1 );
Py_DECREF( tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 263;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
}
branch_no_1:;
}
{
PyObject *tmp_assattr_name_2;
PyObject *tmp_called_name_5;
PyObject *tmp_mvar_value_4;
PyObject *tmp_kw_name_2;
PyObject *tmp_dict_key_3;
PyObject *tmp_dict_value_3;
PyObject *tmp_dict_key_4;
PyObject *tmp_dict_value_4;
PyObject *tmp_source_name_3;
PyObject *tmp_dict_key_5;
PyObject *tmp_dict_value_5;
PyObject *tmp_source_name_4;
PyObject *tmp_dict_key_6;
PyObject *tmp_dict_value_6;
PyObject *tmp_source_name_5;
PyObject *tmp_assattr_target_2;
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ssl_wrap_socket );
if (unlikely( tmp_mvar_value_4 == NULL ))
{
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ssl_wrap_socket );
}
if ( tmp_mvar_value_4 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ssl_wrap_socket" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 268;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_called_name_5 = tmp_mvar_value_4;
tmp_dict_key_3 = const_str_plain_sock;
if ( var_conn == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "conn" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 269;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_dict_value_3 = var_conn;
tmp_kw_name_2 = _PyDict_NewPresized( 4 );
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_3, tmp_dict_value_3 );
assert( !(tmp_res != 0) );
tmp_dict_key_4 = const_str_plain_keyfile;
if ( par_self == NULL )
{
Py_DECREF( tmp_kw_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 270;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_3 = par_self;
tmp_dict_value_4 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_key_file );
if ( tmp_dict_value_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_2 );
exception_lineno = 270;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_4, tmp_dict_value_4 );
Py_DECREF( tmp_dict_value_4 );
assert( !(tmp_res != 0) );
tmp_dict_key_5 = const_str_plain_certfile;
if ( par_self == NULL )
{
Py_DECREF( tmp_kw_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 271;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_4 = par_self;
tmp_dict_value_5 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_cert_file );
if ( tmp_dict_value_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_2 );
exception_lineno = 271;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_5, tmp_dict_value_5 );
Py_DECREF( tmp_dict_value_5 );
assert( !(tmp_res != 0) );
tmp_dict_key_6 = const_str_plain_ssl_context;
if ( par_self == NULL )
{
Py_DECREF( tmp_kw_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 272;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_5 = par_self;
tmp_dict_value_6 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_ssl_context );
if ( tmp_dict_value_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_2 );
exception_lineno = 272;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_6, tmp_dict_value_6 );
Py_DECREF( tmp_dict_value_6 );
assert( !(tmp_res != 0) );
frame_91b7e99f47caf9423225d6a9ed7fc75f->m_frame.f_lineno = 268;
tmp_assattr_name_2 = CALL_FUNCTION_WITH_KEYARGS( tmp_called_name_5, tmp_kw_name_2 );
Py_DECREF( tmp_kw_name_2 );
if ( tmp_assattr_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 268;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 268;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_assattr_target_2 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_sock, tmp_assattr_name_2 );
Py_DECREF( tmp_assattr_name_2 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 268;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_91b7e99f47caf9423225d6a9ed7fc75f );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_91b7e99f47caf9423225d6a9ed7fc75f );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_91b7e99f47caf9423225d6a9ed7fc75f, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_91b7e99f47caf9423225d6a9ed7fc75f->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_91b7e99f47caf9423225d6a9ed7fc75f, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_91b7e99f47caf9423225d6a9ed7fc75f,
type_description_1,
par_self,
var_conn
);
// Release cached frame.
if ( frame_91b7e99f47caf9423225d6a9ed7fc75f == cache_frame_91b7e99f47caf9423225d6a9ed7fc75f )
{
Py_DECREF( frame_91b7e99f47caf9423225d6a9ed7fc75f );
}
cache_frame_91b7e99f47caf9423225d6a9ed7fc75f = NULL;
assertFrameObject( frame_91b7e99f47caf9423225d6a9ed7fc75f );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_9_connect );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_conn );
var_conn = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_conn );
var_conn = 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$connection$$$function_9_connect );
return NULL;
function_exception_exit:
assert( exception_type );
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return NULL;
function_return_exit:
CHECK_OBJECT( tmp_return_value );
assert( had_error || !ERROR_OCCURRED() );
return tmp_return_value;
}
static PyObject *impl_urllib3$connection$$$function_10_set_cert( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_key_file = python_pars[ 1 ];
PyObject *par_cert_file = python_pars[ 2 ];
PyObject *par_cert_reqs = python_pars[ 3 ];
PyObject *par_ca_certs = python_pars[ 4 ];
PyObject *par_assert_hostname = python_pars[ 5 ];
PyObject *par_assert_fingerprint = python_pars[ 6 ];
PyObject *par_ca_cert_dir = python_pars[ 7 ];
struct Nuitka_FrameObject *frame_d795a35735d4f08d08087c9bd30e723c;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
bool tmp_result;
static struct Nuitka_FrameObject *cache_frame_d795a35735d4f08d08087c9bd30e723c = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_d795a35735d4f08d08087c9bd30e723c, codeobj_d795a35735d4f08d08087c9bd30e723c, module_urllib3$connection, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_d795a35735d4f08d08087c9bd30e723c = cache_frame_d795a35735d4f08d08087c9bd30e723c;
// Push the new frame as the currently active one.
pushFrameStack( frame_d795a35735d4f08d08087c9bd30e723c );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_d795a35735d4f08d08087c9bd30e723c ) == 2 ); // Frame stack
// Framed code:
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
CHECK_OBJECT( par_cert_reqs );
tmp_compexpr_left_1 = par_cert_reqs;
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:;
{
nuitka_bool tmp_condition_result_2;
int tmp_or_left_truth_1;
nuitka_bool tmp_or_left_value_1;
nuitka_bool tmp_or_right_value_1;
int tmp_truth_name_1;
int tmp_truth_name_2;
if ( par_ca_certs == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "ca_certs" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 299;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE( par_ca_certs );
if ( tmp_truth_name_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 299;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_or_left_value_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
if ( tmp_or_left_truth_1 == 1 )
{
goto or_left_1;
}
else
{
goto or_right_1;
}
or_right_1:;
if ( par_ca_cert_dir == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "ca_cert_dir" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 299;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_2 = CHECK_IF_TRUE( par_ca_cert_dir );
if ( tmp_truth_name_2 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 299;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_or_right_value_1 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
tmp_condition_result_2 = tmp_or_right_value_1;
goto or_end_1;
or_left_1:;
tmp_condition_result_2 = tmp_or_left_value_1;
or_end_1:;
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
{
goto branch_yes_2;
}
else
{
goto branch_no_2;
}
branch_yes_2:;
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = const_str_plain_CERT_REQUIRED;
{
PyObject *old = par_cert_reqs;
par_cert_reqs = tmp_assign_source_1;
Py_INCREF( par_cert_reqs );
Py_XDECREF( old );
}
}
goto branch_end_2;
branch_no_2:;
{
nuitka_bool tmp_condition_result_3;
PyObject *tmp_compexpr_left_2;
PyObject *tmp_compexpr_right_2;
PyObject *tmp_source_name_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 301;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = par_self;
tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_ssl_context );
if ( tmp_compexpr_left_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 301;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_compexpr_right_2 = Py_None;
tmp_condition_result_3 = ( tmp_compexpr_left_2 != tmp_compexpr_right_2 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_compexpr_left_2 );
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
{
goto branch_yes_3;
}
else
{
goto branch_no_3;
}
branch_yes_3:;
{
PyObject *tmp_assign_source_2;
PyObject *tmp_source_name_2;
PyObject *tmp_source_name_3;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 302;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_3 = par_self;
tmp_source_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_ssl_context );
if ( tmp_source_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 302;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_verify_mode );
Py_DECREF( tmp_source_name_2 );
if ( tmp_assign_source_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 302;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = par_cert_reqs;
par_cert_reqs = tmp_assign_source_2;
Py_XDECREF( old );
}
}
branch_no_3:;
}
branch_end_2:;
}
branch_no_1:;
}
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_assattr_target_1;
if ( par_key_file == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "key_file" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 304;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_1 = par_key_file;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 304;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_key_file, tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 304;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_2;
PyObject *tmp_assattr_target_2;
if ( par_cert_file == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cert_file" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 305;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_2 = par_cert_file;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 305;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_2 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_cert_file, tmp_assattr_name_2 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 305;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_3;
PyObject *tmp_assattr_target_3;
if ( par_cert_reqs == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cert_reqs" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 306;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_3 = par_cert_reqs;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 306;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_3 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain_cert_reqs, tmp_assattr_name_3 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 306;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_4;
PyObject *tmp_assattr_target_4;
if ( par_assert_hostname == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "assert_hostname" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 307;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_4 = par_assert_hostname;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 307;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_4 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain_assert_hostname, tmp_assattr_name_4 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 307;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_5;
PyObject *tmp_assattr_target_5;
if ( par_assert_fingerprint == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "assert_fingerprint" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 308;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_5 = par_assert_fingerprint;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 308;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_5 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_5, const_str_plain_assert_fingerprint, tmp_assattr_name_5 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 308;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_6;
int tmp_and_left_truth_1;
PyObject *tmp_and_left_value_1;
PyObject *tmp_and_right_value_1;
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_4;
PyObject *tmp_source_name_5;
PyObject *tmp_mvar_value_1;
PyObject *tmp_args_element_name_1;
PyObject *tmp_assattr_target_6;
if ( par_ca_certs == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "ca_certs" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 309;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_1 = par_ca_certs;
tmp_and_left_truth_1 = CHECK_IF_TRUE( tmp_and_left_value_1 );
if ( tmp_and_left_truth_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 309;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
if ( tmp_and_left_truth_1 == 1 )
{
goto and_right_1;
}
else
{
goto and_left_1;
}
and_right_1:;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_os );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_os );
}
if ( tmp_mvar_value_1 == NULL )
{
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 = 309;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_5 = tmp_mvar_value_1;
tmp_source_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_path );
if ( tmp_source_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 309;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_expanduser );
Py_DECREF( tmp_source_name_4 );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 309;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
if ( par_ca_certs == 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", "ca_certs" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 309;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_1 = par_ca_certs;
frame_d795a35735d4f08d08087c9bd30e723c->m_frame.f_lineno = 309;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_and_right_value_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
if ( tmp_and_right_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 309;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_6 = tmp_and_right_value_1;
goto and_end_1;
and_left_1:;
Py_INCREF( tmp_and_left_value_1 );
tmp_assattr_name_6 = tmp_and_left_value_1;
and_end_1:;
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_6 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 309;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_6 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_6, const_str_plain_ca_certs, tmp_assattr_name_6 );
Py_DECREF( tmp_assattr_name_6 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 309;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_7;
int tmp_and_left_truth_2;
PyObject *tmp_and_left_value_2;
PyObject *tmp_and_right_value_2;
PyObject *tmp_called_name_2;
PyObject *tmp_source_name_6;
PyObject *tmp_source_name_7;
PyObject *tmp_mvar_value_2;
PyObject *tmp_args_element_name_2;
PyObject *tmp_assattr_target_7;
if ( par_ca_cert_dir == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "ca_cert_dir" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 310;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_2 = par_ca_cert_dir;
tmp_and_left_truth_2 = CHECK_IF_TRUE( tmp_and_left_value_2 );
if ( tmp_and_left_truth_2 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 310;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
if ( tmp_and_left_truth_2 == 1 )
{
goto and_right_2;
}
else
{
goto and_left_2;
}
and_right_2:;
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (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 )
{
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 = 310;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_7 = tmp_mvar_value_2;
tmp_source_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_path );
if ( tmp_source_name_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 310;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_expanduser );
Py_DECREF( tmp_source_name_6 );
if ( tmp_called_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 310;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
if ( par_ca_cert_dir == NULL )
{
Py_DECREF( tmp_called_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "ca_cert_dir" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 310;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_2 = par_ca_cert_dir;
frame_d795a35735d4f08d08087c9bd30e723c->m_frame.f_lineno = 310;
{
PyObject *call_args[] = { tmp_args_element_name_2 };
tmp_and_right_value_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args );
}
Py_DECREF( tmp_called_name_2 );
if ( tmp_and_right_value_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 310;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_7 = tmp_and_right_value_2;
goto and_end_2;
and_left_2:;
Py_INCREF( tmp_and_left_value_2 );
tmp_assattr_name_7 = tmp_and_left_value_2;
and_end_2:;
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_7 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 310;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_7 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_7, const_str_plain_ca_cert_dir, tmp_assattr_name_7 );
Py_DECREF( tmp_assattr_name_7 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 310;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_d795a35735d4f08d08087c9bd30e723c );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_d795a35735d4f08d08087c9bd30e723c );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_d795a35735d4f08d08087c9bd30e723c, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_d795a35735d4f08d08087c9bd30e723c->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_d795a35735d4f08d08087c9bd30e723c, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_d795a35735d4f08d08087c9bd30e723c,
type_description_1,
par_self,
par_key_file,
par_cert_file,
par_cert_reqs,
par_ca_certs,
par_assert_hostname,
par_assert_fingerprint,
par_ca_cert_dir
);
// Release cached frame.
if ( frame_d795a35735d4f08d08087c9bd30e723c == cache_frame_d795a35735d4f08d08087c9bd30e723c )
{
Py_DECREF( frame_d795a35735d4f08d08087c9bd30e723c );
}
cache_frame_d795a35735d4f08d08087c9bd30e723c = NULL;
assertFrameObject( frame_d795a35735d4f08d08087c9bd30e723c );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_10_set_cert );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_key_file );
par_key_file = NULL;
}
{
Py_XDECREF( par_cert_file );
par_cert_file = NULL;
}
{
Py_XDECREF( par_cert_reqs );
par_cert_reqs = NULL;
}
{
Py_XDECREF( par_ca_certs );
par_ca_certs = NULL;
}
{
Py_XDECREF( par_assert_hostname );
par_assert_hostname = NULL;
}
{
Py_XDECREF( par_assert_fingerprint );
par_assert_fingerprint = NULL;
}
{
Py_XDECREF( par_ca_cert_dir );
par_ca_cert_dir = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_key_file );
par_key_file = NULL;
}
{
Py_XDECREF( par_cert_file );
par_cert_file = NULL;
}
{
Py_XDECREF( par_cert_reqs );
par_cert_reqs = NULL;
}
{
Py_XDECREF( par_ca_certs );
par_ca_certs = NULL;
}
{
Py_XDECREF( par_assert_hostname );
par_assert_hostname = NULL;
}
{
Py_XDECREF( par_assert_fingerprint );
par_assert_fingerprint = NULL;
}
{
Py_XDECREF( par_ca_cert_dir );
par_ca_cert_dir = 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$connection$$$function_10_set_cert );
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$connection$$$function_11_connect( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *var_conn = NULL;
PyObject *var_hostname = NULL;
PyObject *var_is_time_off = NULL;
PyObject *var_context = NULL;
PyObject *var_cert = NULL;
struct Nuitka_FrameObject *frame_d5e764e225c785beb6ac3ddf23ac11e8;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
bool tmp_result;
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
int tmp_res;
static struct Nuitka_FrameObject *cache_frame_d5e764e225c785beb6ac3ddf23ac11e8 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_d5e764e225c785beb6ac3ddf23ac11e8, codeobj_d5e764e225c785beb6ac3ddf23ac11e8, module_urllib3$connection, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_d5e764e225c785beb6ac3ddf23ac11e8 = cache_frame_d5e764e225c785beb6ac3ddf23ac11e8;
// Push the new frame as the currently active one.
pushFrameStack( frame_d5e764e225c785beb6ac3ddf23ac11e8 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_d5e764e225c785beb6ac3ddf23ac11e8 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_instance_1;
CHECK_OBJECT( par_self );
tmp_called_instance_1 = par_self;
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 314;
tmp_assign_source_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain__new_conn );
if ( tmp_assign_source_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 314;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
assert( var_conn == NULL );
var_conn = tmp_assign_source_1;
}
{
PyObject *tmp_assign_source_2;
PyObject *tmp_source_name_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 316;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = par_self;
tmp_assign_source_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_host );
if ( tmp_assign_source_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 316;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
assert( var_hostname == NULL );
var_hostname = tmp_assign_source_2;
}
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_getattr_target_1;
PyObject *tmp_getattr_attr_1;
PyObject *tmp_getattr_default_1;
PyObject *tmp_capi_result_1;
int tmp_truth_name_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 317;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_getattr_target_1 = par_self;
tmp_getattr_attr_1 = const_str_plain__tunnel_host;
tmp_getattr_default_1 = Py_None;
tmp_capi_result_1 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 );
if ( tmp_capi_result_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 317;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_capi_result_1 );
if ( tmp_truth_name_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_capi_result_1 );
exception_lineno = 317;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_capi_result_1 );
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_assattr_target_1;
if ( var_conn == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "conn" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 321;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_1 = var_conn;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 321;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_sock, tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 321;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_called_instance_2;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 324;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_called_instance_2 = par_self;
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 324;
tmp_unused = CALL_METHOD_NO_ARGS( tmp_called_instance_2, const_str_plain__tunnel );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 324;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
{
PyObject *tmp_assattr_name_2;
PyObject *tmp_assattr_target_2;
tmp_assattr_name_2 = const_int_0;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 326;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_2 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_auto_open, tmp_assattr_name_2 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 326;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assign_source_3;
PyObject *tmp_source_name_2;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 329;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_2 = par_self;
tmp_assign_source_3 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain__tunnel_host );
if ( tmp_assign_source_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 329;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_hostname;
var_hostname = tmp_assign_source_3;
Py_XDECREF( old );
}
}
branch_no_1:;
}
{
PyObject *tmp_assign_source_4;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
PyObject *tmp_called_instance_3;
PyObject *tmp_source_name_3;
PyObject *tmp_mvar_value_1;
PyObject *tmp_mvar_value_2;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_datetime );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_datetime );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "datetime" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 331;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_3 = tmp_mvar_value_1;
tmp_called_instance_3 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_date );
if ( tmp_called_instance_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 331;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 331;
tmp_compexpr_left_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_3, const_str_plain_today );
Py_DECREF( tmp_called_instance_3 );
if ( tmp_compexpr_left_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 331;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_RECENT_DATE );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_RECENT_DATE );
}
if ( tmp_mvar_value_2 == NULL )
{
Py_DECREF( tmp_compexpr_left_1 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "RECENT_DATE" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 331;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_compexpr_right_1 = tmp_mvar_value_2;
tmp_assign_source_4 = RICH_COMPARE_LT( tmp_compexpr_left_1, tmp_compexpr_right_1 );
Py_DECREF( tmp_compexpr_left_1 );
if ( tmp_assign_source_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 331;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
assert( var_is_time_off == NULL );
var_is_time_off = tmp_assign_source_4;
}
{
nuitka_bool tmp_condition_result_2;
int tmp_truth_name_2;
CHECK_OBJECT( var_is_time_off );
tmp_truth_name_2 = CHECK_IF_TRUE( var_is_time_off );
if ( tmp_truth_name_2 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 332;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_2 = tmp_truth_name_2 == 1 ? 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_called_name_1;
PyObject *tmp_source_name_4;
PyObject *tmp_mvar_value_3;
PyObject *tmp_args_element_name_1;
PyObject *tmp_called_name_2;
PyObject *tmp_source_name_5;
PyObject *tmp_args_element_name_2;
PyObject *tmp_mvar_value_4;
PyObject *tmp_args_element_name_3;
PyObject *tmp_mvar_value_5;
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_warnings );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_warnings );
}
if ( tmp_mvar_value_3 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "warnings" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 333;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_4 = tmp_mvar_value_3;
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_warn );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 333;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_5 = const_str_digest_76770aa881e569a0306b7353925db341;
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_format );
assert( !(tmp_called_name_2 == NULL) );
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_RECENT_DATE );
if (unlikely( tmp_mvar_value_4 == NULL ))
{
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_RECENT_DATE );
}
if ( tmp_mvar_value_4 == NULL )
{
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_called_name_2 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "RECENT_DATE" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 335;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_2 = tmp_mvar_value_4;
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 334;
{
PyObject *call_args[] = { tmp_args_element_name_2 };
tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args );
}
Py_DECREF( tmp_called_name_2 );
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 = 334;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_SystemTimeWarning );
if (unlikely( tmp_mvar_value_5 == NULL ))
{
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_SystemTimeWarning );
}
if ( tmp_mvar_value_5 == NULL )
{
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_args_element_name_1 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "SystemTimeWarning" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 336;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_3 = tmp_mvar_value_5;
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 333;
{
PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_3 };
tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_args_element_name_1 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 333;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
branch_no_2:;
}
{
nuitka_bool tmp_condition_result_3;
PyObject *tmp_compexpr_left_2;
PyObject *tmp_compexpr_right_2;
PyObject *tmp_source_name_6;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 341;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_6 = par_self;
tmp_compexpr_left_2 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_ssl_context );
if ( tmp_compexpr_left_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 341;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_compexpr_right_2 = Py_None;
tmp_condition_result_3 = ( tmp_compexpr_left_2 == tmp_compexpr_right_2 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_compexpr_left_2 );
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
{
goto branch_yes_3;
}
else
{
goto branch_no_3;
}
branch_yes_3:;
{
PyObject *tmp_assattr_name_3;
PyObject *tmp_called_name_3;
PyObject *tmp_mvar_value_6;
PyObject *tmp_kw_name_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_called_name_4;
PyObject *tmp_mvar_value_7;
PyObject *tmp_args_element_name_4;
PyObject *tmp_source_name_7;
PyObject *tmp_dict_key_2;
PyObject *tmp_dict_value_2;
PyObject *tmp_called_name_5;
PyObject *tmp_mvar_value_8;
PyObject *tmp_args_element_name_5;
PyObject *tmp_source_name_8;
PyObject *tmp_assattr_target_3;
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_create_urllib3_context );
if (unlikely( tmp_mvar_value_6 == NULL ))
{
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_create_urllib3_context );
}
if ( tmp_mvar_value_6 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "create_urllib3_context" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 342;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_called_name_3 = tmp_mvar_value_6;
tmp_dict_key_1 = const_str_plain_ssl_version;
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_resolve_ssl_version );
if (unlikely( tmp_mvar_value_7 == NULL ))
{
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_resolve_ssl_version );
}
if ( tmp_mvar_value_7 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "resolve_ssl_version" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 343;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_called_name_4 = tmp_mvar_value_7;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 343;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_7 = par_self;
tmp_args_element_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_ssl_version );
if ( tmp_args_element_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 343;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 343;
{
PyObject *call_args[] = { tmp_args_element_name_4 };
tmp_dict_value_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args );
}
Py_DECREF( tmp_args_element_name_4 );
if ( tmp_dict_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 343;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_kw_name_1 = _PyDict_NewPresized( 2 );
tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_1, tmp_dict_value_1 );
Py_DECREF( tmp_dict_value_1 );
assert( !(tmp_res != 0) );
tmp_dict_key_2 = const_str_plain_cert_reqs;
tmp_mvar_value_8 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_resolve_cert_reqs );
if (unlikely( tmp_mvar_value_8 == NULL ))
{
tmp_mvar_value_8 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_resolve_cert_reqs );
}
if ( tmp_mvar_value_8 == NULL )
{
Py_DECREF( tmp_kw_name_1 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "resolve_cert_reqs" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 344;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_called_name_5 = tmp_mvar_value_8;
if ( par_self == NULL )
{
Py_DECREF( tmp_kw_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 344;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_8 = par_self;
tmp_args_element_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_cert_reqs );
if ( tmp_args_element_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_1 );
exception_lineno = 344;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 344;
{
PyObject *call_args[] = { tmp_args_element_name_5 };
tmp_dict_value_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_5, call_args );
}
Py_DECREF( tmp_args_element_name_5 );
if ( tmp_dict_value_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_1 );
exception_lineno = 344;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_2, tmp_dict_value_2 );
Py_DECREF( tmp_dict_value_2 );
assert( !(tmp_res != 0) );
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 342;
tmp_assattr_name_3 = CALL_FUNCTION_WITH_KEYARGS( tmp_called_name_3, tmp_kw_name_1 );
Py_DECREF( tmp_kw_name_1 );
if ( tmp_assattr_name_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 342;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_3 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 342;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_3 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain_ssl_context, tmp_assattr_name_3 );
Py_DECREF( tmp_assattr_name_3 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 342;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
branch_no_3:;
}
{
PyObject *tmp_assign_source_5;
PyObject *tmp_source_name_9;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 347;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_9 = par_self;
tmp_assign_source_5 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_ssl_context );
if ( tmp_assign_source_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 347;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
assert( var_context == NULL );
var_context = tmp_assign_source_5;
}
{
PyObject *tmp_assattr_name_4;
PyObject *tmp_called_name_6;
PyObject *tmp_mvar_value_9;
PyObject *tmp_args_element_name_6;
PyObject *tmp_source_name_10;
PyObject *tmp_assattr_target_4;
tmp_mvar_value_9 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_resolve_cert_reqs );
if (unlikely( tmp_mvar_value_9 == NULL ))
{
tmp_mvar_value_9 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_resolve_cert_reqs );
}
if ( tmp_mvar_value_9 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "resolve_cert_reqs" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 348;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_called_name_6 = tmp_mvar_value_9;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 348;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_10 = par_self;
tmp_args_element_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_cert_reqs );
if ( tmp_args_element_name_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 348;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 348;
{
PyObject *call_args[] = { tmp_args_element_name_6 };
tmp_assattr_name_4 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_6, call_args );
}
Py_DECREF( tmp_args_element_name_6 );
if ( tmp_assattr_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 348;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
if ( var_context == NULL )
{
Py_DECREF( tmp_assattr_name_4 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "context" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 348;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_4 = var_context;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain_verify_mode, tmp_assattr_name_4 );
Py_DECREF( tmp_assattr_name_4 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 348;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_5;
PyObject *tmp_called_name_7;
PyObject *tmp_mvar_value_10;
PyObject *tmp_kw_name_2;
PyObject *tmp_dict_key_3;
PyObject *tmp_dict_value_3;
PyObject *tmp_dict_key_4;
PyObject *tmp_dict_value_4;
PyObject *tmp_source_name_11;
PyObject *tmp_dict_key_5;
PyObject *tmp_dict_value_5;
PyObject *tmp_source_name_12;
PyObject *tmp_dict_key_6;
PyObject *tmp_dict_value_6;
PyObject *tmp_source_name_13;
PyObject *tmp_dict_key_7;
PyObject *tmp_dict_value_7;
PyObject *tmp_source_name_14;
PyObject *tmp_dict_key_8;
PyObject *tmp_dict_value_8;
PyObject *tmp_dict_key_9;
PyObject *tmp_dict_value_9;
PyObject *tmp_assattr_target_5;
tmp_mvar_value_10 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ssl_wrap_socket );
if (unlikely( tmp_mvar_value_10 == NULL ))
{
tmp_mvar_value_10 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ssl_wrap_socket );
}
if ( tmp_mvar_value_10 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ssl_wrap_socket" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 349;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_called_name_7 = tmp_mvar_value_10;
tmp_dict_key_3 = const_str_plain_sock;
if ( var_conn == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "conn" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 350;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_dict_value_3 = var_conn;
tmp_kw_name_2 = _PyDict_NewPresized( 7 );
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_3, tmp_dict_value_3 );
assert( !(tmp_res != 0) );
tmp_dict_key_4 = const_str_plain_keyfile;
if ( par_self == NULL )
{
Py_DECREF( tmp_kw_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 351;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_11 = par_self;
tmp_dict_value_4 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_key_file );
if ( tmp_dict_value_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_2 );
exception_lineno = 351;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_4, tmp_dict_value_4 );
Py_DECREF( tmp_dict_value_4 );
assert( !(tmp_res != 0) );
tmp_dict_key_5 = const_str_plain_certfile;
if ( par_self == NULL )
{
Py_DECREF( tmp_kw_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 352;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_12 = par_self;
tmp_dict_value_5 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain_cert_file );
if ( tmp_dict_value_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_2 );
exception_lineno = 352;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_5, tmp_dict_value_5 );
Py_DECREF( tmp_dict_value_5 );
assert( !(tmp_res != 0) );
tmp_dict_key_6 = const_str_plain_ca_certs;
if ( par_self == NULL )
{
Py_DECREF( tmp_kw_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 353;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_13 = par_self;
tmp_dict_value_6 = LOOKUP_ATTRIBUTE( tmp_source_name_13, const_str_plain_ca_certs );
if ( tmp_dict_value_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_2 );
exception_lineno = 353;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_6, tmp_dict_value_6 );
Py_DECREF( tmp_dict_value_6 );
assert( !(tmp_res != 0) );
tmp_dict_key_7 = const_str_plain_ca_cert_dir;
if ( par_self == NULL )
{
Py_DECREF( tmp_kw_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 354;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_14 = par_self;
tmp_dict_value_7 = LOOKUP_ATTRIBUTE( tmp_source_name_14, const_str_plain_ca_cert_dir );
if ( tmp_dict_value_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_kw_name_2 );
exception_lineno = 354;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_7, tmp_dict_value_7 );
Py_DECREF( tmp_dict_value_7 );
assert( !(tmp_res != 0) );
tmp_dict_key_8 = const_str_plain_server_hostname;
if ( var_hostname == NULL )
{
Py_DECREF( tmp_kw_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "hostname" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 355;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_dict_value_8 = var_hostname;
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_8, tmp_dict_value_8 );
assert( !(tmp_res != 0) );
tmp_dict_key_9 = const_str_plain_ssl_context;
if ( var_context == NULL )
{
Py_DECREF( tmp_kw_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "context" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 356;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_dict_value_9 = var_context;
tmp_res = PyDict_SetItem( tmp_kw_name_2, tmp_dict_key_9, tmp_dict_value_9 );
assert( !(tmp_res != 0) );
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 349;
tmp_assattr_name_5 = CALL_FUNCTION_WITH_KEYARGS( tmp_called_name_7, tmp_kw_name_2 );
Py_DECREF( tmp_kw_name_2 );
if ( tmp_assattr_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 349;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_5 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 349;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_5 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_5, const_str_plain_sock, tmp_assattr_name_5 );
Py_DECREF( tmp_assattr_name_5 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 349;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
{
nuitka_bool tmp_condition_result_4;
PyObject *tmp_source_name_15;
PyObject *tmp_attribute_value_1;
int tmp_truth_name_3;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 358;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_15 = par_self;
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_15, const_str_plain_assert_fingerprint );
if ( tmp_attribute_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 358;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_3 = CHECK_IF_TRUE( tmp_attribute_value_1 );
if ( tmp_truth_name_3 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_attribute_value_1 );
exception_lineno = 358;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_4 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_attribute_value_1 );
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
{
goto branch_yes_4;
}
else
{
goto branch_no_4;
}
branch_yes_4:;
{
PyObject *tmp_called_name_8;
PyObject *tmp_mvar_value_11;
PyObject *tmp_args_element_name_7;
PyObject *tmp_called_name_9;
PyObject *tmp_source_name_16;
PyObject *tmp_source_name_17;
PyObject *tmp_kw_name_3;
PyObject *tmp_args_element_name_8;
PyObject *tmp_source_name_18;
tmp_mvar_value_11 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_assert_fingerprint );
if (unlikely( tmp_mvar_value_11 == NULL ))
{
tmp_mvar_value_11 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_assert_fingerprint );
}
if ( tmp_mvar_value_11 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "assert_fingerprint" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 359;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_called_name_8 = tmp_mvar_value_11;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 359;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_17 = par_self;
tmp_source_name_16 = LOOKUP_ATTRIBUTE( tmp_source_name_17, const_str_plain_sock );
if ( tmp_source_name_16 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 359;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_called_name_9 = LOOKUP_ATTRIBUTE( tmp_source_name_16, const_str_plain_getpeercert );
Py_DECREF( tmp_source_name_16 );
if ( tmp_called_name_9 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 359;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_kw_name_3 = PyDict_Copy( const_dict_a6ff982bac01e8d0bcf997a792f16c84 );
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 359;
tmp_args_element_name_7 = CALL_FUNCTION_WITH_KEYARGS( tmp_called_name_9, tmp_kw_name_3 );
Py_DECREF( tmp_called_name_9 );
Py_DECREF( tmp_kw_name_3 );
if ( tmp_args_element_name_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 359;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_args_element_name_7 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 360;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_18 = par_self;
tmp_args_element_name_8 = LOOKUP_ATTRIBUTE( tmp_source_name_18, const_str_plain_assert_fingerprint );
if ( tmp_args_element_name_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_args_element_name_7 );
exception_lineno = 360;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 359;
{
PyObject *call_args[] = { tmp_args_element_name_7, tmp_args_element_name_8 };
tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_8, call_args );
}
Py_DECREF( tmp_args_element_name_7 );
Py_DECREF( tmp_args_element_name_8 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 359;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
goto branch_end_4;
branch_no_4:;
{
nuitka_bool tmp_condition_result_5;
int tmp_and_left_truth_1;
nuitka_bool tmp_and_left_value_1;
nuitka_bool tmp_and_right_value_1;
PyObject *tmp_compexpr_left_3;
PyObject *tmp_compexpr_right_3;
PyObject *tmp_source_name_19;
PyObject *tmp_source_name_20;
PyObject *tmp_mvar_value_12;
int tmp_and_left_truth_2;
nuitka_bool tmp_and_left_value_2;
nuitka_bool tmp_and_right_value_2;
PyObject *tmp_operand_name_1;
PyObject *tmp_getattr_target_2;
PyObject *tmp_getattr_attr_2;
PyObject *tmp_getattr_default_2;
PyObject *tmp_compexpr_left_4;
PyObject *tmp_compexpr_right_4;
PyObject *tmp_source_name_21;
if ( var_context == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "context" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 361;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_19 = var_context;
tmp_compexpr_left_3 = LOOKUP_ATTRIBUTE( tmp_source_name_19, const_str_plain_verify_mode );
if ( tmp_compexpr_left_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 361;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_mvar_value_12 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ssl );
if (unlikely( tmp_mvar_value_12 == NULL ))
{
tmp_mvar_value_12 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ssl );
}
if ( tmp_mvar_value_12 == NULL )
{
Py_DECREF( tmp_compexpr_left_3 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ssl" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 361;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_20 = tmp_mvar_value_12;
tmp_compexpr_right_3 = LOOKUP_ATTRIBUTE( tmp_source_name_20, const_str_plain_CERT_NONE );
if ( tmp_compexpr_right_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_compexpr_left_3 );
exception_lineno = 361;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_3, tmp_compexpr_right_3 );
Py_DECREF( tmp_compexpr_left_3 );
Py_DECREF( tmp_compexpr_right_3 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 361;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
if ( tmp_and_left_truth_1 == 1 )
{
goto and_right_1;
}
else
{
goto and_left_1;
}
and_right_1:;
if ( var_context == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "context" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 362;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_getattr_target_2 = var_context;
tmp_getattr_attr_2 = const_str_plain_check_hostname;
tmp_getattr_default_2 = Py_False;
tmp_operand_name_1 = BUILTIN_GETATTR( tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2 );
if ( tmp_operand_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 362;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
Py_DECREF( tmp_operand_name_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 362;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_and_left_value_2 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
tmp_and_left_truth_2 = tmp_and_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0;
if ( tmp_and_left_truth_2 == 1 )
{
goto and_right_2;
}
else
{
goto and_left_2;
}
and_right_2:;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 363;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_21 = par_self;
tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE( tmp_source_name_21, const_str_plain_assert_hostname );
if ( tmp_compexpr_left_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 363;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_compexpr_right_4 = Py_False;
tmp_and_right_value_2 = ( tmp_compexpr_left_4 != tmp_compexpr_right_4 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_compexpr_left_4 );
tmp_and_right_value_1 = tmp_and_right_value_2;
goto and_end_2;
and_left_2:;
tmp_and_right_value_1 = tmp_and_left_value_2;
and_end_2:;
tmp_condition_result_5 = tmp_and_right_value_1;
goto and_end_1;
and_left_1:;
tmp_condition_result_5 = tmp_and_left_value_1;
and_end_1:;
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
{
goto branch_yes_5;
}
else
{
goto branch_no_5;
}
branch_yes_5:;
{
PyObject *tmp_assign_source_6;
PyObject *tmp_called_instance_4;
PyObject *tmp_source_name_22;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 367;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_22 = par_self;
tmp_called_instance_4 = LOOKUP_ATTRIBUTE( tmp_source_name_22, const_str_plain_sock );
if ( tmp_called_instance_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 367;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 367;
tmp_assign_source_6 = CALL_METHOD_NO_ARGS( tmp_called_instance_4, const_str_plain_getpeercert );
Py_DECREF( tmp_called_instance_4 );
if ( tmp_assign_source_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 367;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
assert( var_cert == NULL );
var_cert = tmp_assign_source_6;
}
{
nuitka_bool tmp_condition_result_6;
PyObject *tmp_operand_name_2;
PyObject *tmp_called_instance_5;
CHECK_OBJECT( var_cert );
tmp_called_instance_5 = var_cert;
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 368;
tmp_operand_name_2 = CALL_METHOD_WITH_ARGS2( tmp_called_instance_5, const_str_plain_get, &PyTuple_GET_ITEM( const_tuple_str_plain_subjectAltName_tuple_empty_tuple, 0 ) );
if ( tmp_operand_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 368;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_res = CHECK_IF_TRUE( tmp_operand_name_2 );
Py_DECREF( tmp_operand_name_2 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 368;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_6 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE )
{
goto branch_yes_6;
}
else
{
goto branch_no_6;
}
branch_yes_6:;
{
PyObject *tmp_called_name_10;
PyObject *tmp_source_name_23;
PyObject *tmp_mvar_value_13;
PyObject *tmp_args_element_name_9;
PyObject *tmp_called_name_11;
PyObject *tmp_source_name_24;
PyObject *tmp_args_element_name_10;
PyObject *tmp_args_element_name_11;
PyObject *tmp_mvar_value_14;
tmp_mvar_value_13 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_warnings );
if (unlikely( tmp_mvar_value_13 == NULL ))
{
tmp_mvar_value_13 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_warnings );
}
if ( tmp_mvar_value_13 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "warnings" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 369;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_23 = tmp_mvar_value_13;
tmp_called_name_10 = LOOKUP_ATTRIBUTE( tmp_source_name_23, const_str_plain_warn );
if ( tmp_called_name_10 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 369;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_24 = const_str_digest_9edecb228e21673906c9e9045e5572f5;
tmp_called_name_11 = LOOKUP_ATTRIBUTE( tmp_source_name_24, const_str_plain_format );
assert( !(tmp_called_name_11 == NULL) );
if ( var_hostname == NULL )
{
Py_DECREF( tmp_called_name_10 );
Py_DECREF( tmp_called_name_11 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "hostname" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 373;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_10 = var_hostname;
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 370;
{
PyObject *call_args[] = { tmp_args_element_name_10 };
tmp_args_element_name_9 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_11, call_args );
}
Py_DECREF( tmp_called_name_11 );
if ( tmp_args_element_name_9 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_10 );
exception_lineno = 370;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_mvar_value_14 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_SubjectAltNameWarning );
if (unlikely( tmp_mvar_value_14 == NULL ))
{
tmp_mvar_value_14 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_SubjectAltNameWarning );
}
if ( tmp_mvar_value_14 == NULL )
{
Py_DECREF( tmp_called_name_10 );
Py_DECREF( tmp_args_element_name_9 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "SubjectAltNameWarning" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 374;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_11 = tmp_mvar_value_14;
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 369;
{
PyObject *call_args[] = { tmp_args_element_name_9, tmp_args_element_name_11 };
tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_10, call_args );
}
Py_DECREF( tmp_called_name_10 );
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 = 369;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
branch_no_6:;
}
{
PyObject *tmp_called_name_12;
PyObject *tmp_mvar_value_15;
PyObject *tmp_args_element_name_12;
PyObject *tmp_args_element_name_13;
int tmp_or_left_truth_1;
PyObject *tmp_or_left_value_1;
PyObject *tmp_or_right_value_1;
PyObject *tmp_source_name_25;
tmp_mvar_value_15 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain__match_hostname );
if (unlikely( tmp_mvar_value_15 == NULL ))
{
tmp_mvar_value_15 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__match_hostname );
}
if ( tmp_mvar_value_15 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_match_hostname" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 376;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_called_name_12 = tmp_mvar_value_15;
if ( var_cert == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cert" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 376;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_12 = var_cert;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 376;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_25 = par_self;
tmp_or_left_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_25, const_str_plain_assert_hostname );
if ( tmp_or_left_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 376;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_or_left_truth_1 = CHECK_IF_TRUE( tmp_or_left_value_1 );
if ( tmp_or_left_truth_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_or_left_value_1 );
exception_lineno = 376;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
if ( tmp_or_left_truth_1 == 1 )
{
goto or_left_1;
}
else
{
goto or_right_1;
}
or_right_1:;
Py_DECREF( tmp_or_left_value_1 );
if ( var_hostname == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "hostname" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 376;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_or_right_value_1 = var_hostname;
Py_INCREF( tmp_or_right_value_1 );
tmp_args_element_name_13 = tmp_or_right_value_1;
goto or_end_1;
or_left_1:;
tmp_args_element_name_13 = tmp_or_left_value_1;
or_end_1:;
frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame.f_lineno = 376;
{
PyObject *call_args[] = { tmp_args_element_name_12, tmp_args_element_name_13 };
tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_12, call_args );
}
Py_DECREF( tmp_args_element_name_13 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 376;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
branch_no_5:;
}
branch_end_4:;
}
{
PyObject *tmp_assattr_name_6;
int tmp_or_left_truth_2;
PyObject *tmp_or_left_value_2;
PyObject *tmp_or_right_value_2;
PyObject *tmp_compexpr_left_5;
PyObject *tmp_compexpr_right_5;
PyObject *tmp_source_name_26;
PyObject *tmp_source_name_27;
PyObject *tmp_mvar_value_16;
PyObject *tmp_compexpr_left_6;
PyObject *tmp_compexpr_right_6;
PyObject *tmp_source_name_28;
PyObject *tmp_assattr_target_6;
if ( var_context == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "context" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 379;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_26 = var_context;
tmp_compexpr_left_5 = LOOKUP_ATTRIBUTE( tmp_source_name_26, const_str_plain_verify_mode );
if ( tmp_compexpr_left_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 379;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_mvar_value_16 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ssl );
if (unlikely( tmp_mvar_value_16 == NULL ))
{
tmp_mvar_value_16 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ssl );
}
if ( tmp_mvar_value_16 == NULL )
{
Py_DECREF( tmp_compexpr_left_5 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ssl" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 379;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_27 = tmp_mvar_value_16;
tmp_compexpr_right_5 = LOOKUP_ATTRIBUTE( tmp_source_name_27, const_str_plain_CERT_REQUIRED );
if ( tmp_compexpr_right_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_compexpr_left_5 );
exception_lineno = 379;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_or_left_value_2 = RICH_COMPARE_EQ( tmp_compexpr_left_5, tmp_compexpr_right_5 );
Py_DECREF( tmp_compexpr_left_5 );
Py_DECREF( tmp_compexpr_right_5 );
if ( tmp_or_left_value_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 379;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_or_left_truth_2 = CHECK_IF_TRUE( tmp_or_left_value_2 );
if ( tmp_or_left_truth_2 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_or_left_value_2 );
exception_lineno = 380;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
if ( tmp_or_left_truth_2 == 1 )
{
goto or_left_2;
}
else
{
goto or_right_2;
}
or_right_2:;
Py_DECREF( tmp_or_left_value_2 );
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 380;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_28 = par_self;
tmp_compexpr_left_6 = LOOKUP_ATTRIBUTE( tmp_source_name_28, const_str_plain_assert_fingerprint );
if ( tmp_compexpr_left_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 380;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_compexpr_right_6 = Py_None;
tmp_or_right_value_2 = ( tmp_compexpr_left_6 != tmp_compexpr_right_6 ) ? Py_True : Py_False;
Py_DECREF( tmp_compexpr_left_6 );
Py_INCREF( tmp_or_right_value_2 );
tmp_assattr_name_6 = tmp_or_right_value_2;
goto or_end_2;
or_left_2:;
tmp_assattr_name_6 = tmp_or_left_value_2;
or_end_2:;
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_6 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 378;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_6 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_6, const_str_plain_is_verified, tmp_assattr_name_6 );
Py_DECREF( tmp_assattr_name_6 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 378;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_d5e764e225c785beb6ac3ddf23ac11e8 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_d5e764e225c785beb6ac3ddf23ac11e8 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_d5e764e225c785beb6ac3ddf23ac11e8, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_d5e764e225c785beb6ac3ddf23ac11e8->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_d5e764e225c785beb6ac3ddf23ac11e8, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_d5e764e225c785beb6ac3ddf23ac11e8,
type_description_1,
par_self,
var_conn,
var_hostname,
var_is_time_off,
var_context,
var_cert
);
// Release cached frame.
if ( frame_d5e764e225c785beb6ac3ddf23ac11e8 == cache_frame_d5e764e225c785beb6ac3ddf23ac11e8 )
{
Py_DECREF( frame_d5e764e225c785beb6ac3ddf23ac11e8 );
}
cache_frame_d5e764e225c785beb6ac3ddf23ac11e8 = NULL;
assertFrameObject( frame_d5e764e225c785beb6ac3ddf23ac11e8 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_11_connect );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_conn );
var_conn = NULL;
}
{
Py_XDECREF( var_hostname );
var_hostname = NULL;
}
{
Py_XDECREF( var_is_time_off );
var_is_time_off = NULL;
}
{
Py_XDECREF( var_context );
var_context = NULL;
}
{
Py_XDECREF( var_cert );
var_cert = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_conn );
var_conn = NULL;
}
{
Py_XDECREF( var_hostname );
var_hostname = NULL;
}
{
Py_XDECREF( var_is_time_off );
var_is_time_off = NULL;
}
{
Py_XDECREF( var_context );
var_context = NULL;
}
{
Py_XDECREF( var_cert );
var_cert = 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$connection$$$function_11_connect );
return NULL;
function_exception_exit:
assert( exception_type );
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return NULL;
function_return_exit:
CHECK_OBJECT( tmp_return_value );
assert( had_error || !ERROR_OCCURRED() );
return tmp_return_value;
}
static PyObject *impl_urllib3$connection$$$function_12__match_hostname( 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_cert = python_pars[ 0 ];
PyObject *par_asserted_hostname = python_pars[ 1 ];
PyObject *var_e = NULL;
struct Nuitka_FrameObject *frame_5c3b0830d513c3fe481cb78b8fa76e30;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
PyObject *exception_preserved_type_1;
PyObject *exception_preserved_value_1;
PyTracebackObject *exception_preserved_tb_1;
int tmp_res;
bool tmp_result;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
PyObject *exception_keeper_type_3;
PyObject *exception_keeper_value_3;
PyTracebackObject *exception_keeper_tb_3;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
static struct Nuitka_FrameObject *cache_frame_5c3b0830d513c3fe481cb78b8fa76e30 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_4;
PyObject *exception_keeper_value_4;
PyTracebackObject *exception_keeper_tb_4;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_5c3b0830d513c3fe481cb78b8fa76e30, codeobj_5c3b0830d513c3fe481cb78b8fa76e30, module_urllib3$connection, sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_5c3b0830d513c3fe481cb78b8fa76e30 = cache_frame_5c3b0830d513c3fe481cb78b8fa76e30;
// Push the new frame as the currently active one.
pushFrameStack( frame_5c3b0830d513c3fe481cb78b8fa76e30 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_5c3b0830d513c3fe481cb78b8fa76e30 ) == 2 ); // Frame stack
// Framed code:
{
// Tried code:
{
PyObject *tmp_called_name_1;
PyObject *tmp_mvar_value_1;
PyObject *tmp_args_element_name_1;
PyObject *tmp_args_element_name_2;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_match_hostname );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_match_hostname );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "match_hostname" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 386;
type_description_1 = "ooo";
goto try_except_handler_2;
}
tmp_called_name_1 = tmp_mvar_value_1;
CHECK_OBJECT( par_cert );
tmp_args_element_name_1 = par_cert;
CHECK_OBJECT( par_asserted_hostname );
tmp_args_element_name_2 = par_asserted_hostname;
frame_5c3b0830d513c3fe481cb78b8fa76e30->m_frame.f_lineno = 386;
{
PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 };
tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args );
}
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 386;
type_description_1 = "ooo";
goto try_except_handler_2;
}
Py_DECREF( tmp_unused );
}
goto try_end_1;
// Exception handler code:
try_except_handler_2:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Preserve existing published exception.
exception_preserved_type_1 = EXC_TYPE(PyThreadState_GET());
Py_XINCREF( exception_preserved_type_1 );
exception_preserved_value_1 = EXC_VALUE(PyThreadState_GET());
Py_XINCREF( exception_preserved_value_1 );
exception_preserved_tb_1 = (PyTracebackObject *)EXC_TRACEBACK(PyThreadState_GET());
Py_XINCREF( exception_preserved_tb_1 );
}
{
if ( exception_keeper_tb_1 == NULL )
{
exception_keeper_tb_1 = MAKE_TRACEBACK( frame_5c3b0830d513c3fe481cb78b8fa76e30, exception_keeper_lineno_1 );
}
else if ( exception_keeper_lineno_1 != 0 )
{
exception_keeper_tb_1 = ADD_TRACEBACK( exception_keeper_tb_1, frame_5c3b0830d513c3fe481cb78b8fa76e30, exception_keeper_lineno_1 );
}
NORMALIZE_EXCEPTION( &exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1 );
PyException_SetTraceback( exception_keeper_value_1, (PyObject *)exception_keeper_tb_1 );
PUBLISH_EXCEPTION( &exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1 );
}
{
// Tried code:
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
PyObject *tmp_mvar_value_2;
tmp_compexpr_left_1 = EXC_TYPE(PyThreadState_GET());
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_CertificateError );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_CertificateError );
}
if ( tmp_mvar_value_2 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "CertificateError" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 387;
type_description_1 = "ooo";
goto try_except_handler_3;
}
tmp_compexpr_right_1 = tmp_mvar_value_2;
tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_1, tmp_compexpr_right_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 387;
type_description_1 = "ooo";
goto try_except_handler_3;
}
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = EXC_VALUE(PyThreadState_GET());
assert( var_e == NULL );
Py_INCREF( tmp_assign_source_1 );
var_e = tmp_assign_source_1;
}
{
// Tried code:
{
PyObject *tmp_called_name_2;
PyObject *tmp_source_name_1;
PyObject *tmp_mvar_value_3;
PyObject *tmp_args_element_name_3;
PyObject *tmp_args_element_name_4;
PyObject *tmp_args_element_name_5;
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_log );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_log );
}
if ( tmp_mvar_value_3 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "log" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 388;
type_description_1 = "ooo";
goto try_except_handler_4;
}
tmp_source_name_1 = tmp_mvar_value_3;
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_error );
if ( tmp_called_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 388;
type_description_1 = "ooo";
goto try_except_handler_4;
}
tmp_args_element_name_3 = const_str_digest_e8fecadf67c84324aa28152f08ceec4c;
if ( par_asserted_hostname == NULL )
{
Py_DECREF( tmp_called_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "asserted_hostname" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 390;
type_description_1 = "ooo";
goto try_except_handler_4;
}
tmp_args_element_name_4 = par_asserted_hostname;
if ( par_cert == NULL )
{
Py_DECREF( tmp_called_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cert" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 390;
type_description_1 = "ooo";
goto try_except_handler_4;
}
tmp_args_element_name_5 = par_cert;
frame_5c3b0830d513c3fe481cb78b8fa76e30->m_frame.f_lineno = 388;
{
PyObject *call_args[] = { tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5 };
tmp_unused = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_2, call_args );
}
Py_DECREF( tmp_called_name_2 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 388;
type_description_1 = "ooo";
goto try_except_handler_4;
}
Py_DECREF( tmp_unused );
}
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_assattr_target_1;
if ( par_cert == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cert" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 394;
type_description_1 = "ooo";
goto try_except_handler_4;
}
tmp_assattr_name_1 = par_cert;
if ( var_e == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "e" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 394;
type_description_1 = "ooo";
goto try_except_handler_4;
}
tmp_assattr_target_1 = var_e;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__peer_cert, tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 394;
type_description_1 = "ooo";
goto try_except_handler_4;
}
}
{
tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
if (unlikely( tmp_result == false ))
{
exception_lineno = 395;
}
if (exception_tb && exception_tb->tb_frame == &frame_5c3b0830d513c3fe481cb78b8fa76e30->m_frame) frame_5c3b0830d513c3fe481cb78b8fa76e30->m_frame.f_lineno = exception_tb->tb_lineno;
type_description_1 = "ooo";
goto try_except_handler_4;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_12__match_hostname );
return NULL;
// Exception handler code:
try_except_handler_4:;
exception_keeper_type_2 = exception_type;
exception_keeper_value_2 = exception_value;
exception_keeper_tb_2 = exception_tb;
exception_keeper_lineno_2 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( var_e );
var_e = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_2;
exception_value = exception_keeper_value_2;
exception_tb = exception_keeper_tb_2;
exception_lineno = exception_keeper_lineno_2;
goto try_except_handler_3;
}
// End of try:
}
goto branch_end_1;
branch_no_1:;
{
tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
if (unlikely( tmp_result == false ))
{
exception_lineno = 385;
}
if (exception_tb && exception_tb->tb_frame == &frame_5c3b0830d513c3fe481cb78b8fa76e30->m_frame) frame_5c3b0830d513c3fe481cb78b8fa76e30->m_frame.f_lineno = exception_tb->tb_lineno;
type_description_1 = "ooo";
goto try_except_handler_3;
}
branch_end_1:;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_12__match_hostname );
return NULL;
// Exception handler code:
try_except_handler_3:;
exception_keeper_type_3 = exception_type;
exception_keeper_value_3 = exception_value;
exception_keeper_tb_3 = exception_tb;
exception_keeper_lineno_3 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Restore previous exception.
SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 );
}
{
// Re-raise.
exception_type = exception_keeper_type_3;
exception_value = exception_keeper_value_3;
exception_tb = exception_keeper_tb_3;
exception_lineno = exception_keeper_lineno_3;
goto frame_exception_exit_1;
}
// End of try:
}
// End of try:
try_end_1:;
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_5c3b0830d513c3fe481cb78b8fa76e30 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_5c3b0830d513c3fe481cb78b8fa76e30 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_5c3b0830d513c3fe481cb78b8fa76e30, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_5c3b0830d513c3fe481cb78b8fa76e30->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_5c3b0830d513c3fe481cb78b8fa76e30, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_5c3b0830d513c3fe481cb78b8fa76e30,
type_description_1,
par_cert,
par_asserted_hostname,
var_e
);
// Release cached frame.
if ( frame_5c3b0830d513c3fe481cb78b8fa76e30 == cache_frame_5c3b0830d513c3fe481cb78b8fa76e30 )
{
Py_DECREF( frame_5c3b0830d513c3fe481cb78b8fa76e30 );
}
cache_frame_5c3b0830d513c3fe481cb78b8fa76e30 = NULL;
assertFrameObject( frame_5c3b0830d513c3fe481cb78b8fa76e30 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto try_except_handler_1;
frame_no_exception_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto try_return_handler_1;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_12__match_hostname );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_cert );
par_cert = NULL;
}
{
Py_XDECREF( par_asserted_hostname );
par_asserted_hostname = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_4 = exception_type;
exception_keeper_value_4 = exception_value;
exception_keeper_tb_4 = exception_tb;
exception_keeper_lineno_4 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_cert );
par_cert = NULL;
}
{
Py_XDECREF( par_asserted_hostname );
par_asserted_hostname = NULL;
}
{
Py_XDECREF( var_e );
var_e = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_4;
exception_value = exception_keeper_value_4;
exception_tb = exception_keeper_tb_4;
exception_lineno = exception_keeper_lineno_4;
goto function_exception_exit;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection$$$function_12__match_hostname );
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$connection$$$function_10_set_cert( PyObject *defaults )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_10_set_cert,
const_str_plain_set_cert,
#if PYTHON_VERSION >= 300
const_str_digest_f6189a2c440cbd27c022f13cff60a572,
#endif
codeobj_d795a35735d4f08d08087c9bd30e723c,
defaults,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
const_str_digest_5e42e68968b4150e2b97070212311786,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_11_connect( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_11_connect,
const_str_plain_connect,
#if PYTHON_VERSION >= 300
const_str_digest_138ac2fe8317d63412cc87ad615d6704,
#endif
codeobj_d5e764e225c785beb6ac3ddf23ac11e8,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_12__match_hostname( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_12__match_hostname,
const_str_plain__match_hostname,
#if PYTHON_VERSION >= 300
NULL,
#endif
codeobj_5c3b0830d513c3fe481cb78b8fa76e30,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_1___init__( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_1___init__,
const_str_plain___init__,
#if PYTHON_VERSION >= 300
const_str_digest_80f637382c7af69afc34ed6fe0d28101,
#endif
codeobj_24b1e0a523c51d10d62ad6b9663deec9,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_2_host( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_2_host,
const_str_plain_host,
#if PYTHON_VERSION >= 300
const_str_digest_4512a68ac4b34dd91e9a87521e1e9eac,
#endif
codeobj_6c314261d4320adf0e4891e06c9d3265,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
const_str_digest_413072d56f5b6cab90a6a564aa42b34d,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_3_host( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_3_host,
const_str_plain_host,
#if PYTHON_VERSION >= 300
const_str_digest_4512a68ac4b34dd91e9a87521e1e9eac,
#endif
codeobj_44592aa602c1481bb93c466efba552f2,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
const_str_digest_feb167a80b64f9a6111c2ef450038b43,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_4__new_conn( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_4__new_conn,
const_str_plain__new_conn,
#if PYTHON_VERSION >= 300
const_str_digest_c6805becf79cf5eff4b2929a8bdf6b80,
#endif
codeobj_e78847097403aeb71e00b52a5ab6269a,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
const_str_digest_e0fe92f188862ba1c4cac2ad70dff86d,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_5__prepare_conn( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_5__prepare_conn,
const_str_plain__prepare_conn,
#if PYTHON_VERSION >= 300
const_str_digest_b8059d78d07f1c28e74284d373f1a4be,
#endif
codeobj_156f179f138a050c1e91739a9155edc0,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_6_connect( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_6_connect,
const_str_plain_connect,
#if PYTHON_VERSION >= 300
const_str_digest_9ba1c08e5bab7a37429c5bb8555c9014,
#endif
codeobj_dd2d61ef46844522e3e2314213540cae,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_7_request_chunked( PyObject *defaults )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_7_request_chunked,
const_str_plain_request_chunked,
#if PYTHON_VERSION >= 300
const_str_digest_6c5b3ee9bbe47a9b1ec0c71ed61345f6,
#endif
codeobj_43e6aee7702f4fbda33aa3a06e013254,
defaults,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
const_str_digest_dc659baf5812ef509a1bfb99226d850c,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_8___init__( PyObject *defaults )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_8___init__,
const_str_plain___init__,
#if PYTHON_VERSION >= 300
const_str_digest_e4b0b56d1d18c023aae13ad5e86b5a90,
#endif
codeobj_241d2e5304967bbe85bd4aa540337435,
defaults,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_urllib3$connection$$$function_9_connect( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_urllib3$connection$$$function_9_connect,
const_str_plain_connect,
#if PYTHON_VERSION >= 300
const_str_digest_6b674c2a52b85692f41de0a2e49ce316,
#endif
codeobj_91b7e99f47caf9423225d6a9ed7fc75f,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_urllib3$connection,
NULL,
0
);
return (PyObject *)result;
}
#if PYTHON_VERSION >= 300
static struct PyModuleDef mdef_urllib3$connection =
{
PyModuleDef_HEAD_INIT,
"urllib3.connection", /* 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$connection )
{
#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$connection );
}
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.connection: 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.connection: Calling createModuleConstants().");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("urllib3.connection: Calling createModuleCodeObjects().");
#endif
createModuleCodeObjects();
// puts( "in initurllib3$connection" );
// 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$connection = Py_InitModule4(
"urllib3.connection", // 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$connection = PyModule_Create( &mdef_urllib3$connection );
#endif
moduledict_urllib3$connection = MODULE_DICT( module_urllib3$connection );
// Update "__package__" value to what it ought to be.
{
#if 0
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain___name__ );
UPDATE_STRING_DICT1(
moduledict_urllib3$connection,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 300
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (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$connection,
(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$connection, (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$connection,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring( module_name, 0, dot_index )
);
}
#endif
#endif
}
CHECK_OBJECT( module_urllib3$connection );
// 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_003800fb824e3437bbbf235acf31301c, module_urllib3$connection );
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$connection, (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$connection, (Nuitka_StringObject *)const_str_plain___builtins__, value );
}
#if PYTHON_VERSION >= 300
UPDATE_STRING_DICT0( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
#endif
#if PYTHON_VERSION >= 340
#if 0
UPDATE_STRING_DICT0( moduledict_urllib3$connection, (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$connection, (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$connection, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
Py_DECREF( module_spec_class );
}
#endif
#endif
// Temp variables if any
PyObject *outline_0_var___class__ = NULL;
PyObject *outline_1_var___class__ = NULL;
PyObject *outline_2_var___class__ = NULL;
PyObject *outline_3_var___class__ = NULL;
PyObject *outline_4_var___class__ = NULL;
PyObject *outline_5_var___class__ = NULL;
PyObject *tmp_class_creation_1__bases = NULL;
PyObject *tmp_class_creation_1__class_decl_dict = NULL;
PyObject *tmp_class_creation_1__metaclass = NULL;
PyObject *tmp_class_creation_1__prepared = NULL;
PyObject *tmp_class_creation_2__bases = NULL;
PyObject *tmp_class_creation_2__class_decl_dict = NULL;
PyObject *tmp_class_creation_2__metaclass = NULL;
PyObject *tmp_class_creation_2__prepared = NULL;
PyObject *tmp_class_creation_3__bases = NULL;
PyObject *tmp_class_creation_3__class_decl_dict = NULL;
PyObject *tmp_class_creation_3__metaclass = NULL;
PyObject *tmp_class_creation_3__prepared = NULL;
PyObject *tmp_class_creation_4__bases = NULL;
PyObject *tmp_class_creation_4__bases_orig = NULL;
PyObject *tmp_class_creation_4__class_decl_dict = NULL;
PyObject *tmp_class_creation_4__metaclass = NULL;
PyObject *tmp_class_creation_4__prepared = NULL;
PyObject *tmp_class_creation_5__bases = NULL;
PyObject *tmp_class_creation_5__bases_orig = NULL;
PyObject *tmp_class_creation_5__class_decl_dict = NULL;
PyObject *tmp_class_creation_5__metaclass = NULL;
PyObject *tmp_class_creation_5__prepared = NULL;
PyObject *tmp_class_creation_6__bases = NULL;
PyObject *tmp_class_creation_6__bases_orig = NULL;
PyObject *tmp_class_creation_6__class_decl_dict = NULL;
PyObject *tmp_class_creation_6__metaclass = NULL;
PyObject *tmp_class_creation_6__prepared = NULL;
PyObject *tmp_import_from_1__module = NULL;
PyObject *tmp_import_from_2__module = NULL;
PyObject *tmp_import_from_3__module = NULL;
PyObject *tmp_import_from_4__module = NULL;
struct Nuitka_FrameObject *frame_aa400c26d6baaba6883bb70b16940588;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
PyObject *exception_preserved_type_1;
PyObject *exception_preserved_value_1;
PyTracebackObject *exception_preserved_tb_1;
int tmp_res;
PyObject *tmp_dictdel_dict;
PyObject *tmp_dictdel_key;
bool tmp_result;
PyObject *locals_urllib3$connection_19 = NULL;
PyObject *tmp_dictset_value;
PyObject *exception_keeper_type_3;
PyObject *exception_keeper_value_3;
PyTracebackObject *exception_keeper_tb_3;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
PyObject *exception_keeper_type_4;
PyObject *exception_keeper_value_4;
PyTracebackObject *exception_keeper_tb_4;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
PyObject *exception_keeper_type_5;
PyObject *exception_keeper_value_5;
PyTracebackObject *exception_keeper_tb_5;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5;
PyObject *exception_keeper_type_6;
PyObject *exception_keeper_value_6;
PyTracebackObject *exception_keeper_tb_6;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6;
PyObject *exception_keeper_type_7;
PyObject *exception_keeper_value_7;
PyTracebackObject *exception_keeper_tb_7;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7;
PyObject *exception_preserved_type_2;
PyObject *exception_preserved_value_2;
PyTracebackObject *exception_preserved_tb_2;
PyObject *locals_urllib3$connection_27 = NULL;
PyObject *exception_keeper_type_8;
PyObject *exception_keeper_value_8;
PyTracebackObject *exception_keeper_tb_8;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_8;
PyObject *exception_keeper_type_9;
PyObject *exception_keeper_value_9;
PyTracebackObject *exception_keeper_tb_9;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_9;
PyObject *exception_keeper_type_10;
PyObject *exception_keeper_value_10;
PyTracebackObject *exception_keeper_tb_10;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_10;
PyObject *exception_keeper_type_11;
PyObject *exception_keeper_value_11;
PyTracebackObject *exception_keeper_tb_11;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_11;
PyObject *exception_keeper_type_12;
PyObject *exception_keeper_value_12;
PyTracebackObject *exception_keeper_tb_12;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_12;
PyObject *exception_keeper_type_13;
PyObject *exception_keeper_value_13;
PyTracebackObject *exception_keeper_tb_13;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_13;
PyObject *exception_keeper_type_14;
PyObject *exception_keeper_value_14;
PyTracebackObject *exception_keeper_tb_14;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_14;
PyObject *locals_urllib3$connection_66 = NULL;
PyObject *exception_keeper_type_15;
PyObject *exception_keeper_value_15;
PyTracebackObject *exception_keeper_tb_15;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_15;
PyObject *exception_keeper_type_16;
PyObject *exception_keeper_value_16;
PyTracebackObject *exception_keeper_tb_16;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_16;
PyObject *exception_keeper_type_17;
PyObject *exception_keeper_value_17;
PyTracebackObject *exception_keeper_tb_17;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_17;
PyObject *locals_urllib3$connection_71 = NULL;
struct Nuitka_FrameObject *frame_fc8c12040a85b20506c0975151b2b704_2;
NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL;
static struct Nuitka_FrameObject *cache_frame_fc8c12040a85b20506c0975151b2b704_2 = NULL;
PyObject *exception_keeper_type_18;
PyObject *exception_keeper_value_18;
PyTracebackObject *exception_keeper_tb_18;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_18;
PyObject *exception_keeper_type_19;
PyObject *exception_keeper_value_19;
PyTracebackObject *exception_keeper_tb_19;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_19;
PyObject *exception_keeper_type_20;
PyObject *exception_keeper_value_20;
PyTracebackObject *exception_keeper_tb_20;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_20;
PyObject *locals_urllib3$connection_238 = NULL;
struct Nuitka_FrameObject *frame_08c67e79a2abab08fd6ee625591c87ea_3;
NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL;
static struct Nuitka_FrameObject *cache_frame_08c67e79a2abab08fd6ee625591c87ea_3 = NULL;
PyObject *exception_keeper_type_21;
PyObject *exception_keeper_value_21;
PyTracebackObject *exception_keeper_tb_21;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_21;
PyObject *exception_keeper_type_22;
PyObject *exception_keeper_value_22;
PyTracebackObject *exception_keeper_tb_22;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_22;
PyObject *exception_keeper_type_23;
PyObject *exception_keeper_value_23;
PyTracebackObject *exception_keeper_tb_23;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_23;
PyObject *locals_urllib3$connection_276 = NULL;
struct Nuitka_FrameObject *frame_4548f050f2c31cbba54da18fe72fcddc_4;
NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL;
static struct Nuitka_FrameObject *cache_frame_4548f050f2c31cbba54da18fe72fcddc_4 = NULL;
PyObject *exception_keeper_type_24;
PyObject *exception_keeper_value_24;
PyTracebackObject *exception_keeper_tb_24;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_24;
PyObject *exception_keeper_type_25;
PyObject *exception_keeper_value_25;
PyTracebackObject *exception_keeper_tb_25;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_25;
PyObject *exception_keeper_type_26;
PyObject *exception_keeper_value_26;
PyTracebackObject *exception_keeper_tb_26;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_26;
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = Py_None;
UPDATE_STRING_DICT0( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = const_str_digest_123b7da439c7431dfd8705caa37438f8;
UPDATE_STRING_DICT0( moduledict_urllib3$connection, (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$connection, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
}
// Frame without reuse.
frame_aa400c26d6baaba6883bb70b16940588 = MAKE_MODULE_FRAME( codeobj_aa400c26d6baaba6883bb70b16940588, module_urllib3$connection );
// Push the new frame as the currently active one, and we should be exclusively
// owning it.
pushFrameStack( frame_aa400c26d6baaba6883bb70b16940588 );
assert( Py_REFCNT( frame_aa400c26d6baaba6883bb70b16940588 ) == 2 );
// Framed code:
{
PyObject *tmp_assign_source_4;
PyObject *tmp_import_name_from_1;
frame_aa400c26d6baaba6883bb70b16940588->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$connection, (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_datetime;
tmp_globals_name_1 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_1 = Py_None;
tmp_fromlist_name_1 = Py_None;
tmp_level_name_1 = const_int_0;
frame_aa400c26d6baaba6883bb70b16940588->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$connection, (Nuitka_StringObject *)const_str_plain_datetime, 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_logging;
tmp_globals_name_2 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_2 = Py_None;
tmp_fromlist_name_2 = Py_None;
tmp_level_name_2 = const_int_0;
frame_aa400c26d6baaba6883bb70b16940588->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$connection, (Nuitka_StringObject *)const_str_plain_logging, 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$connection;
tmp_locals_name_3 = Py_None;
tmp_fromlist_name_3 = Py_None;
tmp_level_name_3 = const_int_0;
frame_aa400c26d6baaba6883bb70b16940588->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$connection, (Nuitka_StringObject *)const_str_plain_os, tmp_assign_source_7 );
}
{
PyObject *tmp_assign_source_8;
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_sys;
tmp_globals_name_4 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_4 = Py_None;
tmp_fromlist_name_4 = Py_None;
tmp_level_name_4 = const_int_0;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 5;
tmp_assign_source_8 = IMPORT_MODULE5( tmp_name_name_4, tmp_globals_name_4, tmp_locals_name_4, tmp_fromlist_name_4, tmp_level_name_4 );
assert( !(tmp_assign_source_8 == NULL) );
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_sys, tmp_assign_source_8 );
}
{
PyObject *tmp_assign_source_9;
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_socket;
tmp_globals_name_5 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_5 = Py_None;
tmp_fromlist_name_5 = Py_None;
tmp_level_name_5 = const_int_0;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 6;
tmp_assign_source_9 = IMPORT_MODULE5( tmp_name_name_5, tmp_globals_name_5, tmp_locals_name_5, tmp_fromlist_name_5, tmp_level_name_5 );
if ( tmp_assign_source_9 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 6;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_socket, tmp_assign_source_9 );
}
{
PyObject *tmp_assign_source_10;
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_plain_socket;
tmp_globals_name_6 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_6 = Py_None;
tmp_fromlist_name_6 = const_tuple_str_plain_error_str_plain_timeout_tuple;
tmp_level_name_6 = const_int_0;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 7;
tmp_assign_source_10 = IMPORT_MODULE5( tmp_name_name_6, tmp_globals_name_6, tmp_locals_name_6, tmp_fromlist_name_6, tmp_level_name_6 );
if ( tmp_assign_source_10 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 7;
goto frame_exception_exit_1;
}
assert( tmp_import_from_1__module == NULL );
tmp_import_from_1__module = tmp_assign_source_10;
}
{
// Tried code:
{
PyObject *tmp_assign_source_11;
PyObject *tmp_import_name_from_2;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_2 = tmp_import_from_1__module;
tmp_assign_source_11 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_error );
if ( tmp_assign_source_11 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 7;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_SocketError, tmp_assign_source_11 );
}
{
PyObject *tmp_assign_source_12;
PyObject *tmp_import_name_from_3;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_3 = tmp_import_from_1__module;
tmp_assign_source_12 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_timeout );
if ( tmp_assign_source_12 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 7;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_SocketTimeout, tmp_assign_source_12 );
}
goto try_end_1;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
Py_DECREF( tmp_import_from_1__module );
tmp_import_from_1__module = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto frame_exception_exit_1;
}
// End of try:
try_end_1:;
}
{
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
Py_DECREF( tmp_import_from_1__module );
tmp_import_from_1__module = NULL;
}
{
PyObject *tmp_assign_source_13;
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_warnings;
tmp_globals_name_7 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_7 = Py_None;
tmp_fromlist_name_7 = Py_None;
tmp_level_name_7 = const_int_0;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 8;
tmp_assign_source_13 = IMPORT_MODULE5( tmp_name_name_7, tmp_globals_name_7, tmp_locals_name_7, tmp_fromlist_name_7, tmp_level_name_7 );
if ( tmp_assign_source_13 == 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$connection, (Nuitka_StringObject *)const_str_plain_warnings, tmp_assign_source_13 );
}
{
PyObject *tmp_assign_source_14;
PyObject *tmp_import_name_from_4;
PyObject *tmp_name_name_8;
PyObject *tmp_globals_name_8;
PyObject *tmp_locals_name_8;
PyObject *tmp_fromlist_name_8;
PyObject *tmp_level_name_8;
tmp_name_name_8 = const_str_plain_packages;
tmp_globals_name_8 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_8 = Py_None;
tmp_fromlist_name_8 = const_tuple_str_plain_six_tuple;
tmp_level_name_8 = const_int_pos_1;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 9;
tmp_import_name_from_4 = IMPORT_MODULE5( tmp_name_name_8, tmp_globals_name_8, tmp_locals_name_8, tmp_fromlist_name_8, tmp_level_name_8 );
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_14 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_4,
(PyObject *)MODULE_DICT(tmp_import_name_from_4),
const_str_plain_six,
const_int_pos_1
);
}
else
{
tmp_assign_source_14 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_six );
}
Py_DECREF( tmp_import_name_from_4 );
if ( tmp_assign_source_14 == 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$connection, (Nuitka_StringObject *)const_str_plain_six, tmp_assign_source_14 );
}
{
PyObject *tmp_assign_source_15;
PyObject *tmp_import_name_from_5;
PyObject *tmp_name_name_9;
PyObject *tmp_globals_name_9;
PyObject *tmp_locals_name_9;
PyObject *tmp_fromlist_name_9;
PyObject *tmp_level_name_9;
tmp_name_name_9 = const_str_digest_0f2eb9f71c85852d8e24437103b38cdd;
tmp_globals_name_9 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_9 = Py_None;
tmp_fromlist_name_9 = const_tuple_str_plain_HTTPConnection_tuple;
tmp_level_name_9 = const_int_pos_1;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 10;
tmp_import_name_from_5 = IMPORT_MODULE5( tmp_name_name_9, tmp_globals_name_9, tmp_locals_name_9, tmp_fromlist_name_9, tmp_level_name_9 );
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_15 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_5,
(PyObject *)MODULE_DICT(tmp_import_name_from_5),
const_str_plain_HTTPConnection,
const_int_pos_1
);
}
else
{
tmp_assign_source_15 = IMPORT_NAME( tmp_import_name_from_5, const_str_plain_HTTPConnection );
}
Py_DECREF( tmp_import_name_from_5 );
if ( tmp_assign_source_15 == 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$connection, (Nuitka_StringObject *)const_str_plain__HTTPConnection, tmp_assign_source_15 );
}
{
PyObject *tmp_assign_source_16;
PyObject *tmp_import_name_from_6;
PyObject *tmp_name_name_10;
PyObject *tmp_globals_name_10;
PyObject *tmp_locals_name_10;
PyObject *tmp_fromlist_name_10;
PyObject *tmp_level_name_10;
tmp_name_name_10 = const_str_digest_0f2eb9f71c85852d8e24437103b38cdd;
tmp_globals_name_10 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_10 = Py_None;
tmp_fromlist_name_10 = const_tuple_str_plain_HTTPException_tuple;
tmp_level_name_10 = const_int_pos_1;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 11;
tmp_import_name_from_6 = IMPORT_MODULE5( tmp_name_name_10, tmp_globals_name_10, tmp_locals_name_10, tmp_fromlist_name_10, tmp_level_name_10 );
if ( tmp_import_name_from_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 11;
goto frame_exception_exit_1;
}
if ( PyModule_Check( tmp_import_name_from_6 ) )
{
tmp_assign_source_16 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_6,
(PyObject *)MODULE_DICT(tmp_import_name_from_6),
const_str_plain_HTTPException,
const_int_pos_1
);
}
else
{
tmp_assign_source_16 = IMPORT_NAME( tmp_import_name_from_6, const_str_plain_HTTPException );
}
Py_DECREF( tmp_import_name_from_6 );
if ( tmp_assign_source_16 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 11;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPException, tmp_assign_source_16 );
}
{
// Tried code:
{
PyObject *tmp_assign_source_17;
PyObject *tmp_name_name_11;
PyObject *tmp_globals_name_11;
PyObject *tmp_locals_name_11;
PyObject *tmp_fromlist_name_11;
PyObject *tmp_level_name_11;
tmp_name_name_11 = const_str_plain_ssl;
tmp_globals_name_11 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_11 = Py_None;
tmp_fromlist_name_11 = Py_None;
tmp_level_name_11 = const_int_0;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 14;
tmp_assign_source_17 = IMPORT_MODULE5( tmp_name_name_11, tmp_globals_name_11, tmp_locals_name_11, tmp_fromlist_name_11, tmp_level_name_11 );
if ( tmp_assign_source_17 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 14;
goto try_except_handler_2;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ssl, tmp_assign_source_17 );
}
{
PyObject *tmp_assign_source_18;
PyObject *tmp_source_name_1;
PyObject *tmp_mvar_value_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ssl );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ssl );
}
CHECK_OBJECT( tmp_mvar_value_1 );
tmp_source_name_1 = tmp_mvar_value_1;
tmp_assign_source_18 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_SSLError );
if ( tmp_assign_source_18 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 15;
goto try_except_handler_2;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_BaseSSLError, tmp_assign_source_18 );
}
goto try_end_2;
// Exception handler code:
try_except_handler_2:;
exception_keeper_type_2 = exception_type;
exception_keeper_value_2 = exception_value;
exception_keeper_tb_2 = exception_tb;
exception_keeper_lineno_2 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Preserve existing published exception.
exception_preserved_type_1 = EXC_TYPE(PyThreadState_GET());
Py_XINCREF( exception_preserved_type_1 );
exception_preserved_value_1 = EXC_VALUE(PyThreadState_GET());
Py_XINCREF( exception_preserved_value_1 );
exception_preserved_tb_1 = (PyTracebackObject *)EXC_TRACEBACK(PyThreadState_GET());
Py_XINCREF( exception_preserved_tb_1 );
}
{
if ( exception_keeper_tb_2 == NULL )
{
exception_keeper_tb_2 = MAKE_TRACEBACK( frame_aa400c26d6baaba6883bb70b16940588, exception_keeper_lineno_2 );
}
else if ( exception_keeper_lineno_2 != 0 )
{
exception_keeper_tb_2 = ADD_TRACEBACK( exception_keeper_tb_2, frame_aa400c26d6baaba6883bb70b16940588, exception_keeper_lineno_2 );
}
NORMALIZE_EXCEPTION( &exception_keeper_type_2, &exception_keeper_value_2, &exception_keeper_tb_2 );
PyException_SetTraceback( exception_keeper_value_2, (PyObject *)exception_keeper_tb_2 );
PUBLISH_EXCEPTION( &exception_keeper_type_2, &exception_keeper_value_2, &exception_keeper_tb_2 );
}
{
// Tried code:
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
tmp_compexpr_left_1 = EXC_TYPE(PyThreadState_GET());
tmp_compexpr_right_1 = const_tuple_type_ImportError_type_AttributeError_tuple;
tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_1, tmp_compexpr_right_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 16;
goto try_except_handler_3;
}
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
PyObject *tmp_assign_source_19;
tmp_assign_source_19 = Py_None;
UPDATE_STRING_DICT0( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ssl, tmp_assign_source_19 );
}
{
// Tried code:
{
PyObject *tmp_assign_source_20;
PyObject *tmp_dircall_arg1_1;
tmp_dircall_arg1_1 = const_tuple_type_BaseException_tuple;
Py_INCREF( tmp_dircall_arg1_1 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1};
tmp_assign_source_20 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
}
if ( tmp_assign_source_20 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
assert( tmp_class_creation_1__bases == NULL );
tmp_class_creation_1__bases = tmp_assign_source_20;
}
{
PyObject *tmp_assign_source_21;
tmp_assign_source_21 = PyDict_New();
assert( tmp_class_creation_1__class_decl_dict == NULL );
tmp_class_creation_1__class_decl_dict = tmp_assign_source_21;
}
{
PyObject *tmp_assign_source_22;
PyObject *tmp_metaclass_name_1;
nuitka_bool tmp_condition_result_2;
PyObject *tmp_key_name_1;
PyObject *tmp_dict_name_1;
PyObject *tmp_dict_name_2;
PyObject *tmp_key_name_2;
nuitka_bool tmp_condition_result_3;
int tmp_truth_name_1;
PyObject *tmp_type_arg_1;
PyObject *tmp_subscribed_name_1;
PyObject *tmp_subscript_name_1;
PyObject *tmp_bases_name_1;
tmp_key_name_1 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_dict_name_1 = tmp_class_creation_1__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_1, tmp_key_name_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_1;
}
else
{
goto condexpr_false_1;
}
condexpr_true_1:;
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_dict_name_2 = tmp_class_creation_1__class_decl_dict;
tmp_key_name_2 = const_str_plain_metaclass;
tmp_metaclass_name_1 = DICT_GET_ITEM( tmp_dict_name_2, tmp_key_name_2 );
if ( tmp_metaclass_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
goto condexpr_end_1;
condexpr_false_1:;
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_class_creation_1__bases );
if ( tmp_truth_name_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
tmp_condition_result_3 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_2;
}
else
{
goto condexpr_false_2;
}
condexpr_true_2:;
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_subscribed_name_1 = tmp_class_creation_1__bases;
tmp_subscript_name_1 = const_int_0;
tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 );
if ( tmp_type_arg_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
tmp_metaclass_name_1 = BUILTIN_TYPE1( tmp_type_arg_1 );
Py_DECREF( tmp_type_arg_1 );
if ( tmp_metaclass_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
goto condexpr_end_2;
condexpr_false_2:;
tmp_metaclass_name_1 = (PyObject *)&PyType_Type;
Py_INCREF( tmp_metaclass_name_1 );
condexpr_end_2:;
condexpr_end_1:;
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_bases_name_1 = tmp_class_creation_1__bases;
tmp_assign_source_22 = SELECT_METACLASS( tmp_metaclass_name_1, tmp_bases_name_1 );
Py_DECREF( tmp_metaclass_name_1 );
if ( tmp_assign_source_22 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
assert( tmp_class_creation_1__metaclass == NULL );
tmp_class_creation_1__metaclass = tmp_assign_source_22;
}
{
nuitka_bool tmp_condition_result_4;
PyObject *tmp_key_name_3;
PyObject *tmp_dict_name_3;
tmp_key_name_3 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_dict_name_3 = tmp_class_creation_1__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_3, tmp_key_name_3 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
{
goto branch_yes_2;
}
else
{
goto branch_no_2;
}
branch_yes_2:;
{
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict;
tmp_dictdel_key = const_str_plain_metaclass;
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
}
branch_no_2:;
}
{
nuitka_bool tmp_condition_result_5;
PyObject *tmp_source_name_2;
CHECK_OBJECT( tmp_class_creation_1__metaclass );
tmp_source_name_2 = tmp_class_creation_1__metaclass;
tmp_res = PyObject_HasAttr( tmp_source_name_2, const_str_plain___prepare__ );
tmp_condition_result_5 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
{
goto branch_yes_3;
}
else
{
goto branch_no_3;
}
branch_yes_3:;
{
PyObject *tmp_assign_source_23;
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_3;
PyObject *tmp_args_name_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_kw_name_1;
CHECK_OBJECT( tmp_class_creation_1__metaclass );
tmp_source_name_3 = tmp_class_creation_1__metaclass;
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain___prepare__ );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
tmp_tuple_element_1 = const_str_plain_BaseSSLError;
tmp_args_name_1 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_1 );
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_tuple_element_1 = tmp_class_creation_1__bases;
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_1 );
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_kw_name_1 = tmp_class_creation_1__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 19;
tmp_assign_source_23 = CALL_FUNCTION( tmp_called_name_1, tmp_args_name_1, tmp_kw_name_1 );
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_args_name_1 );
if ( tmp_assign_source_23 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
assert( tmp_class_creation_1__prepared == NULL );
tmp_class_creation_1__prepared = tmp_assign_source_23;
}
{
nuitka_bool tmp_condition_result_6;
PyObject *tmp_operand_name_1;
PyObject *tmp_source_name_4;
CHECK_OBJECT( tmp_class_creation_1__prepared );
tmp_source_name_4 = tmp_class_creation_1__prepared;
tmp_res = PyObject_HasAttr( tmp_source_name_4, const_str_plain___getitem__ );
tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False;
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
tmp_condition_result_6 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE )
{
goto branch_yes_4;
}
else
{
goto branch_no_4;
}
branch_yes_4:;
{
PyObject *tmp_raise_type_1;
PyObject *tmp_raise_value_1;
PyObject *tmp_left_name_1;
PyObject *tmp_right_name_1;
PyObject *tmp_tuple_element_2;
PyObject *tmp_getattr_target_1;
PyObject *tmp_getattr_attr_1;
PyObject *tmp_getattr_default_1;
PyObject *tmp_source_name_5;
PyObject *tmp_type_arg_2;
tmp_raise_type_1 = PyExc_TypeError;
tmp_left_name_1 = const_str_digest_75fd71b1edada749c2ef7ac810062295;
CHECK_OBJECT( tmp_class_creation_1__metaclass );
tmp_getattr_target_1 = tmp_class_creation_1__metaclass;
tmp_getattr_attr_1 = const_str_plain___name__;
tmp_getattr_default_1 = const_str_angle_metaclass;
tmp_tuple_element_2 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 );
if ( tmp_tuple_element_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
tmp_right_name_1 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_2 );
CHECK_OBJECT( tmp_class_creation_1__prepared );
tmp_type_arg_2 = tmp_class_creation_1__prepared;
tmp_source_name_5 = BUILTIN_TYPE1( tmp_type_arg_2 );
assert( !(tmp_source_name_5 == NULL) );
tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain___name__ );
Py_DECREF( tmp_source_name_5 );
if ( tmp_tuple_element_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_right_name_1 );
exception_lineno = 19;
goto try_except_handler_4;
}
PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_2 );
tmp_raise_value_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 );
Py_DECREF( tmp_right_name_1 );
if ( tmp_raise_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_4;
}
exception_type = tmp_raise_type_1;
Py_INCREF( tmp_raise_type_1 );
exception_value = tmp_raise_value_1;
exception_lineno = 19;
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
goto try_except_handler_4;
}
branch_no_4:;
}
goto branch_end_3;
branch_no_3:;
{
PyObject *tmp_assign_source_24;
tmp_assign_source_24 = PyDict_New();
assert( tmp_class_creation_1__prepared == NULL );
tmp_class_creation_1__prepared = tmp_assign_source_24;
}
branch_end_3:;
}
{
PyObject *tmp_assign_source_25;
{
PyObject *tmp_set_locals_1;
CHECK_OBJECT( tmp_class_creation_1__prepared );
tmp_set_locals_1 = tmp_class_creation_1__prepared;
locals_urllib3$connection_19 = tmp_set_locals_1;
Py_INCREF( tmp_set_locals_1 );
}
{
// Tried code:
{
// Tried code:
{
tmp_dictset_value = const_str_digest_003800fb824e3437bbbf235acf31301c;
tmp_res = PyObject_SetItem( locals_urllib3$connection_19, const_str_plain___module__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_6;
}
}
{
tmp_dictset_value = const_str_plain_BaseSSLError;
tmp_res = PyObject_SetItem( locals_urllib3$connection_19, const_str_plain___qualname__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_6;
}
}
{
nuitka_bool tmp_condition_result_7;
PyObject *tmp_compexpr_left_2;
PyObject *tmp_compexpr_right_2;
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_compexpr_left_2 = tmp_class_creation_1__bases;
tmp_compexpr_right_2 = const_tuple_type_BaseException_tuple;
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_2, tmp_compexpr_right_2 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_6;
}
tmp_condition_result_7 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE )
{
goto branch_yes_5;
}
else
{
goto branch_no_5;
}
branch_yes_5:;
{
tmp_dictset_value = const_tuple_type_BaseException_tuple;
tmp_res = PyObject_SetItem( locals_urllib3$connection_19, const_str_plain___orig_bases__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_6;
}
}
branch_no_5:;
}
{
PyObject *tmp_assign_source_26;
PyObject *tmp_called_name_2;
PyObject *tmp_args_name_2;
PyObject *tmp_tuple_element_3;
PyObject *tmp_kw_name_2;
CHECK_OBJECT( tmp_class_creation_1__metaclass );
tmp_called_name_2 = tmp_class_creation_1__metaclass;
tmp_tuple_element_3 = const_str_plain_BaseSSLError;
tmp_args_name_2 = PyTuple_New( 3 );
Py_INCREF( tmp_tuple_element_3 );
PyTuple_SET_ITEM( tmp_args_name_2, 0, tmp_tuple_element_3 );
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_tuple_element_3 = tmp_class_creation_1__bases;
Py_INCREF( tmp_tuple_element_3 );
PyTuple_SET_ITEM( tmp_args_name_2, 1, tmp_tuple_element_3 );
tmp_tuple_element_3 = locals_urllib3$connection_19;
Py_INCREF( tmp_tuple_element_3 );
PyTuple_SET_ITEM( tmp_args_name_2, 2, tmp_tuple_element_3 );
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_kw_name_2 = tmp_class_creation_1__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 19;
tmp_assign_source_26 = CALL_FUNCTION( tmp_called_name_2, tmp_args_name_2, tmp_kw_name_2 );
Py_DECREF( tmp_args_name_2 );
if ( tmp_assign_source_26 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 19;
goto try_except_handler_6;
}
assert( outline_0_var___class__ == NULL );
outline_0_var___class__ = tmp_assign_source_26;
}
{
CHECK_OBJECT( outline_0_var___class__ );
tmp_assign_source_25 = outline_0_var___class__;
Py_INCREF( tmp_assign_source_25 );
goto try_return_handler_6;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_6:;
{
Py_DECREF( locals_urllib3$connection_19 );
locals_urllib3$connection_19 = NULL;
}
{
goto try_return_handler_5;
}
// Exception handler code:
try_except_handler_6:;
exception_keeper_type_3 = exception_type;
exception_keeper_value_3 = exception_value;
exception_keeper_tb_3 = exception_tb;
exception_keeper_lineno_3 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_DECREF( locals_urllib3$connection_19 );
locals_urllib3$connection_19 = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_3;
exception_value = exception_keeper_value_3;
exception_tb = exception_keeper_tb_3;
exception_lineno = exception_keeper_lineno_3;
goto try_except_handler_5;
}
// End of try:
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_5:;
{
CHECK_OBJECT( (PyObject *)outline_0_var___class__ );
Py_DECREF( outline_0_var___class__ );
outline_0_var___class__ = NULL;
}
{
goto outline_result_1;
}
// Exception handler code:
try_except_handler_5:;
exception_keeper_type_4 = exception_type;
exception_keeper_value_4 = exception_value;
exception_keeper_tb_4 = exception_tb;
exception_keeper_lineno_4 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Re-raise.
exception_type = exception_keeper_type_4;
exception_value = exception_keeper_value_4;
exception_tb = exception_keeper_tb_4;
exception_lineno = exception_keeper_lineno_4;
goto outline_exception_1;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
outline_exception_1:;
exception_lineno = 19;
goto try_except_handler_4;
outline_result_1:;
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_BaseSSLError, tmp_assign_source_25 );
}
goto try_end_3;
// Exception handler code:
try_except_handler_4:;
exception_keeper_type_5 = exception_type;
exception_keeper_value_5 = exception_value;
exception_keeper_tb_5 = exception_tb;
exception_keeper_lineno_5 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_class_creation_1__bases );
tmp_class_creation_1__bases = NULL;
}
{
Py_XDECREF( tmp_class_creation_1__class_decl_dict );
tmp_class_creation_1__class_decl_dict = NULL;
}
{
Py_XDECREF( tmp_class_creation_1__metaclass );
tmp_class_creation_1__metaclass = NULL;
}
{
Py_XDECREF( tmp_class_creation_1__prepared );
tmp_class_creation_1__prepared = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_5;
exception_value = exception_keeper_value_5;
exception_tb = exception_keeper_tb_5;
exception_lineno = exception_keeper_lineno_5;
goto try_except_handler_3;
}
// End of try:
try_end_3:;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__bases );
Py_DECREF( tmp_class_creation_1__bases );
tmp_class_creation_1__bases = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__class_decl_dict );
Py_DECREF( tmp_class_creation_1__class_decl_dict );
tmp_class_creation_1__class_decl_dict = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__metaclass );
Py_DECREF( tmp_class_creation_1__metaclass );
tmp_class_creation_1__metaclass = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__prepared );
Py_DECREF( tmp_class_creation_1__prepared );
tmp_class_creation_1__prepared = NULL;
}
goto branch_end_1;
branch_no_1:;
{
tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
if (unlikely( tmp_result == false ))
{
exception_lineno = 13;
}
if (exception_tb && exception_tb->tb_frame == &frame_aa400c26d6baaba6883bb70b16940588->m_frame) frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = exception_tb->tb_lineno;
goto try_except_handler_3;
}
branch_end_1:;
}
goto try_end_4;
// Exception handler code:
try_except_handler_3:;
exception_keeper_type_6 = exception_type;
exception_keeper_value_6 = exception_value;
exception_keeper_tb_6 = exception_tb;
exception_keeper_lineno_6 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Restore previous exception.
SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 );
}
{
// Re-raise.
exception_type = exception_keeper_type_6;
exception_value = exception_keeper_value_6;
exception_tb = exception_keeper_tb_6;
exception_lineno = exception_keeper_lineno_6;
goto frame_exception_exit_1;
}
// End of try:
try_end_4:;
}
{
// Restore previous exception.
SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 );
}
goto try_end_2;
// exception handler codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// End of try:
try_end_2:;
}
{
// Tried code:
{
PyObject *tmp_assign_source_27;
PyObject *tmp_mvar_value_2;
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ConnectionError );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ConnectionError );
}
if ( tmp_mvar_value_2 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ConnectionError" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 25;
goto try_except_handler_7;
}
tmp_assign_source_27 = tmp_mvar_value_2;
UPDATE_STRING_DICT0( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ConnectionError, tmp_assign_source_27 );
}
goto try_end_5;
// Exception handler code:
try_except_handler_7:;
exception_keeper_type_7 = exception_type;
exception_keeper_value_7 = exception_value;
exception_keeper_tb_7 = exception_tb;
exception_keeper_lineno_7 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Preserve existing published exception.
exception_preserved_type_2 = EXC_TYPE(PyThreadState_GET());
Py_XINCREF( exception_preserved_type_2 );
exception_preserved_value_2 = EXC_VALUE(PyThreadState_GET());
Py_XINCREF( exception_preserved_value_2 );
exception_preserved_tb_2 = (PyTracebackObject *)EXC_TRACEBACK(PyThreadState_GET());
Py_XINCREF( exception_preserved_tb_2 );
}
{
if ( exception_keeper_tb_7 == NULL )
{
exception_keeper_tb_7 = MAKE_TRACEBACK( frame_aa400c26d6baaba6883bb70b16940588, exception_keeper_lineno_7 );
}
else if ( exception_keeper_lineno_7 != 0 )
{
exception_keeper_tb_7 = ADD_TRACEBACK( exception_keeper_tb_7, frame_aa400c26d6baaba6883bb70b16940588, exception_keeper_lineno_7 );
}
NORMALIZE_EXCEPTION( &exception_keeper_type_7, &exception_keeper_value_7, &exception_keeper_tb_7 );
PyException_SetTraceback( exception_keeper_value_7, (PyObject *)exception_keeper_tb_7 );
PUBLISH_EXCEPTION( &exception_keeper_type_7, &exception_keeper_value_7, &exception_keeper_tb_7 );
}
{
// Tried code:
{
nuitka_bool tmp_condition_result_8;
PyObject *tmp_compexpr_left_3;
PyObject *tmp_compexpr_right_3;
tmp_compexpr_left_3 = EXC_TYPE(PyThreadState_GET());
tmp_compexpr_right_3 = PyExc_NameError;
tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_3, tmp_compexpr_right_3 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 26;
goto try_except_handler_8;
}
tmp_condition_result_8 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_8 == NUITKA_BOOL_TRUE )
{
goto branch_yes_6;
}
else
{
goto branch_no_6;
}
branch_yes_6:;
{
// Tried code:
{
PyObject *tmp_assign_source_28;
PyObject *tmp_dircall_arg1_2;
tmp_dircall_arg1_2 = const_tuple_type_Exception_tuple;
Py_INCREF( tmp_dircall_arg1_2 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_2};
tmp_assign_source_28 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
}
if ( tmp_assign_source_28 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
assert( tmp_class_creation_2__bases == NULL );
tmp_class_creation_2__bases = tmp_assign_source_28;
}
{
PyObject *tmp_assign_source_29;
tmp_assign_source_29 = PyDict_New();
assert( tmp_class_creation_2__class_decl_dict == NULL );
tmp_class_creation_2__class_decl_dict = tmp_assign_source_29;
}
{
PyObject *tmp_assign_source_30;
PyObject *tmp_metaclass_name_2;
nuitka_bool tmp_condition_result_9;
PyObject *tmp_key_name_4;
PyObject *tmp_dict_name_4;
PyObject *tmp_dict_name_5;
PyObject *tmp_key_name_5;
nuitka_bool tmp_condition_result_10;
int tmp_truth_name_2;
PyObject *tmp_type_arg_3;
PyObject *tmp_subscribed_name_2;
PyObject *tmp_subscript_name_2;
PyObject *tmp_bases_name_2;
tmp_key_name_4 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_2__class_decl_dict );
tmp_dict_name_4 = tmp_class_creation_2__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_4, tmp_key_name_4 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
tmp_condition_result_9 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_9 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_3;
}
else
{
goto condexpr_false_3;
}
condexpr_true_3:;
CHECK_OBJECT( tmp_class_creation_2__class_decl_dict );
tmp_dict_name_5 = tmp_class_creation_2__class_decl_dict;
tmp_key_name_5 = const_str_plain_metaclass;
tmp_metaclass_name_2 = DICT_GET_ITEM( tmp_dict_name_5, tmp_key_name_5 );
if ( tmp_metaclass_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
goto condexpr_end_3;
condexpr_false_3:;
CHECK_OBJECT( tmp_class_creation_2__bases );
tmp_truth_name_2 = CHECK_IF_TRUE( tmp_class_creation_2__bases );
if ( tmp_truth_name_2 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
tmp_condition_result_10 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_10 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_4;
}
else
{
goto condexpr_false_4;
}
condexpr_true_4:;
CHECK_OBJECT( tmp_class_creation_2__bases );
tmp_subscribed_name_2 = tmp_class_creation_2__bases;
tmp_subscript_name_2 = const_int_0;
tmp_type_arg_3 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_2, tmp_subscript_name_2, 0 );
if ( tmp_type_arg_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
tmp_metaclass_name_2 = BUILTIN_TYPE1( tmp_type_arg_3 );
Py_DECREF( tmp_type_arg_3 );
if ( tmp_metaclass_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
goto condexpr_end_4;
condexpr_false_4:;
tmp_metaclass_name_2 = (PyObject *)&PyType_Type;
Py_INCREF( tmp_metaclass_name_2 );
condexpr_end_4:;
condexpr_end_3:;
CHECK_OBJECT( tmp_class_creation_2__bases );
tmp_bases_name_2 = tmp_class_creation_2__bases;
tmp_assign_source_30 = SELECT_METACLASS( tmp_metaclass_name_2, tmp_bases_name_2 );
Py_DECREF( tmp_metaclass_name_2 );
if ( tmp_assign_source_30 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
assert( tmp_class_creation_2__metaclass == NULL );
tmp_class_creation_2__metaclass = tmp_assign_source_30;
}
{
nuitka_bool tmp_condition_result_11;
PyObject *tmp_key_name_6;
PyObject *tmp_dict_name_6;
tmp_key_name_6 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_2__class_decl_dict );
tmp_dict_name_6 = tmp_class_creation_2__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_6, tmp_key_name_6 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
tmp_condition_result_11 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_11 == NUITKA_BOOL_TRUE )
{
goto branch_yes_7;
}
else
{
goto branch_no_7;
}
branch_yes_7:;
{
CHECK_OBJECT( tmp_class_creation_2__class_decl_dict );
tmp_dictdel_dict = tmp_class_creation_2__class_decl_dict;
tmp_dictdel_key = const_str_plain_metaclass;
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
}
branch_no_7:;
}
{
nuitka_bool tmp_condition_result_12;
PyObject *tmp_source_name_6;
CHECK_OBJECT( tmp_class_creation_2__metaclass );
tmp_source_name_6 = tmp_class_creation_2__metaclass;
tmp_res = PyObject_HasAttr( tmp_source_name_6, const_str_plain___prepare__ );
tmp_condition_result_12 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_12 == NUITKA_BOOL_TRUE )
{
goto branch_yes_8;
}
else
{
goto branch_no_8;
}
branch_yes_8:;
{
PyObject *tmp_assign_source_31;
PyObject *tmp_called_name_3;
PyObject *tmp_source_name_7;
PyObject *tmp_args_name_3;
PyObject *tmp_tuple_element_4;
PyObject *tmp_kw_name_3;
CHECK_OBJECT( tmp_class_creation_2__metaclass );
tmp_source_name_7 = tmp_class_creation_2__metaclass;
tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain___prepare__ );
if ( tmp_called_name_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
tmp_tuple_element_4 = const_str_plain_ConnectionError;
tmp_args_name_3 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_4 );
PyTuple_SET_ITEM( tmp_args_name_3, 0, tmp_tuple_element_4 );
CHECK_OBJECT( tmp_class_creation_2__bases );
tmp_tuple_element_4 = tmp_class_creation_2__bases;
Py_INCREF( tmp_tuple_element_4 );
PyTuple_SET_ITEM( tmp_args_name_3, 1, tmp_tuple_element_4 );
CHECK_OBJECT( tmp_class_creation_2__class_decl_dict );
tmp_kw_name_3 = tmp_class_creation_2__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 27;
tmp_assign_source_31 = CALL_FUNCTION( tmp_called_name_3, tmp_args_name_3, tmp_kw_name_3 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_name_3 );
if ( tmp_assign_source_31 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
assert( tmp_class_creation_2__prepared == NULL );
tmp_class_creation_2__prepared = tmp_assign_source_31;
}
{
nuitka_bool tmp_condition_result_13;
PyObject *tmp_operand_name_2;
PyObject *tmp_source_name_8;
CHECK_OBJECT( tmp_class_creation_2__prepared );
tmp_source_name_8 = tmp_class_creation_2__prepared;
tmp_res = PyObject_HasAttr( tmp_source_name_8, const_str_plain___getitem__ );
tmp_operand_name_2 = ( tmp_res != 0 ) ? Py_True : Py_False;
tmp_res = CHECK_IF_TRUE( tmp_operand_name_2 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
tmp_condition_result_13 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_13 == NUITKA_BOOL_TRUE )
{
goto branch_yes_9;
}
else
{
goto branch_no_9;
}
branch_yes_9:;
{
PyObject *tmp_raise_type_2;
PyObject *tmp_raise_value_2;
PyObject *tmp_left_name_2;
PyObject *tmp_right_name_2;
PyObject *tmp_tuple_element_5;
PyObject *tmp_getattr_target_2;
PyObject *tmp_getattr_attr_2;
PyObject *tmp_getattr_default_2;
PyObject *tmp_source_name_9;
PyObject *tmp_type_arg_4;
tmp_raise_type_2 = PyExc_TypeError;
tmp_left_name_2 = const_str_digest_75fd71b1edada749c2ef7ac810062295;
CHECK_OBJECT( tmp_class_creation_2__metaclass );
tmp_getattr_target_2 = tmp_class_creation_2__metaclass;
tmp_getattr_attr_2 = const_str_plain___name__;
tmp_getattr_default_2 = const_str_angle_metaclass;
tmp_tuple_element_5 = BUILTIN_GETATTR( tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2 );
if ( tmp_tuple_element_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
tmp_right_name_2 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_right_name_2, 0, tmp_tuple_element_5 );
CHECK_OBJECT( tmp_class_creation_2__prepared );
tmp_type_arg_4 = tmp_class_creation_2__prepared;
tmp_source_name_9 = BUILTIN_TYPE1( tmp_type_arg_4 );
assert( !(tmp_source_name_9 == NULL) );
tmp_tuple_element_5 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain___name__ );
Py_DECREF( tmp_source_name_9 );
if ( tmp_tuple_element_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_right_name_2 );
exception_lineno = 27;
goto try_except_handler_9;
}
PyTuple_SET_ITEM( tmp_right_name_2, 1, tmp_tuple_element_5 );
tmp_raise_value_2 = BINARY_OPERATION_REMAINDER( tmp_left_name_2, tmp_right_name_2 );
Py_DECREF( tmp_right_name_2 );
if ( tmp_raise_value_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_9;
}
exception_type = tmp_raise_type_2;
Py_INCREF( tmp_raise_type_2 );
exception_value = tmp_raise_value_2;
exception_lineno = 27;
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
goto try_except_handler_9;
}
branch_no_9:;
}
goto branch_end_8;
branch_no_8:;
{
PyObject *tmp_assign_source_32;
tmp_assign_source_32 = PyDict_New();
assert( tmp_class_creation_2__prepared == NULL );
tmp_class_creation_2__prepared = tmp_assign_source_32;
}
branch_end_8:;
}
{
PyObject *tmp_assign_source_33;
{
PyObject *tmp_set_locals_2;
CHECK_OBJECT( tmp_class_creation_2__prepared );
tmp_set_locals_2 = tmp_class_creation_2__prepared;
locals_urllib3$connection_27 = tmp_set_locals_2;
Py_INCREF( tmp_set_locals_2 );
}
{
// Tried code:
{
// Tried code:
{
tmp_dictset_value = const_str_digest_003800fb824e3437bbbf235acf31301c;
tmp_res = PyObject_SetItem( locals_urllib3$connection_27, const_str_plain___module__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_11;
}
}
{
tmp_dictset_value = const_str_plain_ConnectionError;
tmp_res = PyObject_SetItem( locals_urllib3$connection_27, const_str_plain___qualname__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_11;
}
}
{
nuitka_bool tmp_condition_result_14;
PyObject *tmp_compexpr_left_4;
PyObject *tmp_compexpr_right_4;
CHECK_OBJECT( tmp_class_creation_2__bases );
tmp_compexpr_left_4 = tmp_class_creation_2__bases;
tmp_compexpr_right_4 = const_tuple_type_Exception_tuple;
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_4, tmp_compexpr_right_4 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_11;
}
tmp_condition_result_14 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_14 == NUITKA_BOOL_TRUE )
{
goto branch_yes_10;
}
else
{
goto branch_no_10;
}
branch_yes_10:;
{
tmp_dictset_value = const_tuple_type_Exception_tuple;
tmp_res = PyObject_SetItem( locals_urllib3$connection_27, const_str_plain___orig_bases__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_11;
}
}
branch_no_10:;
}
{
PyObject *tmp_assign_source_34;
PyObject *tmp_called_name_4;
PyObject *tmp_args_name_4;
PyObject *tmp_tuple_element_6;
PyObject *tmp_kw_name_4;
CHECK_OBJECT( tmp_class_creation_2__metaclass );
tmp_called_name_4 = tmp_class_creation_2__metaclass;
tmp_tuple_element_6 = const_str_plain_ConnectionError;
tmp_args_name_4 = PyTuple_New( 3 );
Py_INCREF( tmp_tuple_element_6 );
PyTuple_SET_ITEM( tmp_args_name_4, 0, tmp_tuple_element_6 );
CHECK_OBJECT( tmp_class_creation_2__bases );
tmp_tuple_element_6 = tmp_class_creation_2__bases;
Py_INCREF( tmp_tuple_element_6 );
PyTuple_SET_ITEM( tmp_args_name_4, 1, tmp_tuple_element_6 );
tmp_tuple_element_6 = locals_urllib3$connection_27;
Py_INCREF( tmp_tuple_element_6 );
PyTuple_SET_ITEM( tmp_args_name_4, 2, tmp_tuple_element_6 );
CHECK_OBJECT( tmp_class_creation_2__class_decl_dict );
tmp_kw_name_4 = tmp_class_creation_2__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 27;
tmp_assign_source_34 = CALL_FUNCTION( tmp_called_name_4, tmp_args_name_4, tmp_kw_name_4 );
Py_DECREF( tmp_args_name_4 );
if ( tmp_assign_source_34 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 27;
goto try_except_handler_11;
}
assert( outline_1_var___class__ == NULL );
outline_1_var___class__ = tmp_assign_source_34;
}
{
CHECK_OBJECT( outline_1_var___class__ );
tmp_assign_source_33 = outline_1_var___class__;
Py_INCREF( tmp_assign_source_33 );
goto try_return_handler_11;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_11:;
{
Py_DECREF( locals_urllib3$connection_27 );
locals_urllib3$connection_27 = NULL;
}
{
goto try_return_handler_10;
}
// Exception handler code:
try_except_handler_11:;
exception_keeper_type_8 = exception_type;
exception_keeper_value_8 = exception_value;
exception_keeper_tb_8 = exception_tb;
exception_keeper_lineno_8 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_DECREF( locals_urllib3$connection_27 );
locals_urllib3$connection_27 = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_8;
exception_value = exception_keeper_value_8;
exception_tb = exception_keeper_tb_8;
exception_lineno = exception_keeper_lineno_8;
goto try_except_handler_10;
}
// End of try:
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_10:;
{
CHECK_OBJECT( (PyObject *)outline_1_var___class__ );
Py_DECREF( outline_1_var___class__ );
outline_1_var___class__ = NULL;
}
{
goto outline_result_2;
}
// Exception handler code:
try_except_handler_10:;
exception_keeper_type_9 = exception_type;
exception_keeper_value_9 = exception_value;
exception_keeper_tb_9 = exception_tb;
exception_keeper_lineno_9 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Re-raise.
exception_type = exception_keeper_type_9;
exception_value = exception_keeper_value_9;
exception_tb = exception_keeper_tb_9;
exception_lineno = exception_keeper_lineno_9;
goto outline_exception_2;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
outline_exception_2:;
exception_lineno = 27;
goto try_except_handler_9;
outline_result_2:;
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ConnectionError, tmp_assign_source_33 );
}
goto try_end_6;
// Exception handler code:
try_except_handler_9:;
exception_keeper_type_10 = exception_type;
exception_keeper_value_10 = exception_value;
exception_keeper_tb_10 = exception_tb;
exception_keeper_lineno_10 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_class_creation_2__bases );
tmp_class_creation_2__bases = NULL;
}
{
Py_XDECREF( tmp_class_creation_2__class_decl_dict );
tmp_class_creation_2__class_decl_dict = NULL;
}
{
Py_XDECREF( tmp_class_creation_2__metaclass );
tmp_class_creation_2__metaclass = NULL;
}
{
Py_XDECREF( tmp_class_creation_2__prepared );
tmp_class_creation_2__prepared = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_10;
exception_value = exception_keeper_value_10;
exception_tb = exception_keeper_tb_10;
exception_lineno = exception_keeper_lineno_10;
goto try_except_handler_8;
}
// End of try:
try_end_6:;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_2__bases );
Py_DECREF( tmp_class_creation_2__bases );
tmp_class_creation_2__bases = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_2__class_decl_dict );
Py_DECREF( tmp_class_creation_2__class_decl_dict );
tmp_class_creation_2__class_decl_dict = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_2__metaclass );
Py_DECREF( tmp_class_creation_2__metaclass );
tmp_class_creation_2__metaclass = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_2__prepared );
Py_DECREF( tmp_class_creation_2__prepared );
tmp_class_creation_2__prepared = NULL;
}
goto branch_end_6;
branch_no_6:;
{
tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
if (unlikely( tmp_result == false ))
{
exception_lineno = 23;
}
if (exception_tb && exception_tb->tb_frame == &frame_aa400c26d6baaba6883bb70b16940588->m_frame) frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = exception_tb->tb_lineno;
goto try_except_handler_8;
}
branch_end_6:;
}
goto try_end_7;
// Exception handler code:
try_except_handler_8:;
exception_keeper_type_11 = exception_type;
exception_keeper_value_11 = exception_value;
exception_keeper_tb_11 = exception_tb;
exception_keeper_lineno_11 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Restore previous exception.
SET_CURRENT_EXCEPTION( exception_preserved_type_2, exception_preserved_value_2, exception_preserved_tb_2 );
}
{
// Re-raise.
exception_type = exception_keeper_type_11;
exception_value = exception_keeper_value_11;
exception_tb = exception_keeper_tb_11;
exception_lineno = exception_keeper_lineno_11;
goto frame_exception_exit_1;
}
// End of try:
try_end_7:;
}
{
// Restore previous exception.
SET_CURRENT_EXCEPTION( exception_preserved_type_2, exception_preserved_value_2, exception_preserved_tb_2 );
}
goto try_end_5;
// exception handler codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// End of try:
try_end_5:;
}
{
PyObject *tmp_assign_source_35;
PyObject *tmp_name_name_12;
PyObject *tmp_globals_name_12;
PyObject *tmp_locals_name_12;
PyObject *tmp_fromlist_name_12;
PyObject *tmp_level_name_12;
tmp_name_name_12 = const_str_plain_exceptions;
tmp_globals_name_12 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_12 = Py_None;
tmp_fromlist_name_12 = const_tuple_e4d50c48f2ee1b6eb3ae021a15141bf1_tuple;
tmp_level_name_12 = const_int_pos_1;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 31;
tmp_assign_source_35 = IMPORT_MODULE5( tmp_name_name_12, tmp_globals_name_12, tmp_locals_name_12, tmp_fromlist_name_12, tmp_level_name_12 );
if ( tmp_assign_source_35 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 31;
goto frame_exception_exit_1;
}
assert( tmp_import_from_2__module == NULL );
tmp_import_from_2__module = tmp_assign_source_35;
}
{
// Tried code:
{
PyObject *tmp_assign_source_36;
PyObject *tmp_import_name_from_7;
CHECK_OBJECT( tmp_import_from_2__module );
tmp_import_name_from_7 = tmp_import_from_2__module;
if ( PyModule_Check( tmp_import_name_from_7 ) )
{
tmp_assign_source_36 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_7,
(PyObject *)MODULE_DICT(tmp_import_name_from_7),
const_str_plain_NewConnectionError,
const_int_pos_1
);
}
else
{
tmp_assign_source_36 = IMPORT_NAME( tmp_import_name_from_7, const_str_plain_NewConnectionError );
}
if ( tmp_assign_source_36 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 31;
goto try_except_handler_12;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_NewConnectionError, tmp_assign_source_36 );
}
{
PyObject *tmp_assign_source_37;
PyObject *tmp_import_name_from_8;
CHECK_OBJECT( tmp_import_from_2__module );
tmp_import_name_from_8 = tmp_import_from_2__module;
if ( PyModule_Check( tmp_import_name_from_8 ) )
{
tmp_assign_source_37 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_8,
(PyObject *)MODULE_DICT(tmp_import_name_from_8),
const_str_plain_ConnectTimeoutError,
const_int_pos_1
);
}
else
{
tmp_assign_source_37 = IMPORT_NAME( tmp_import_name_from_8, const_str_plain_ConnectTimeoutError );
}
if ( tmp_assign_source_37 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 31;
goto try_except_handler_12;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ConnectTimeoutError, tmp_assign_source_37 );
}
{
PyObject *tmp_assign_source_38;
PyObject *tmp_import_name_from_9;
CHECK_OBJECT( tmp_import_from_2__module );
tmp_import_name_from_9 = tmp_import_from_2__module;
if ( PyModule_Check( tmp_import_name_from_9 ) )
{
tmp_assign_source_38 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_9,
(PyObject *)MODULE_DICT(tmp_import_name_from_9),
const_str_plain_SubjectAltNameWarning,
const_int_pos_1
);
}
else
{
tmp_assign_source_38 = IMPORT_NAME( tmp_import_name_from_9, const_str_plain_SubjectAltNameWarning );
}
if ( tmp_assign_source_38 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 31;
goto try_except_handler_12;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_SubjectAltNameWarning, tmp_assign_source_38 );
}
{
PyObject *tmp_assign_source_39;
PyObject *tmp_import_name_from_10;
CHECK_OBJECT( tmp_import_from_2__module );
tmp_import_name_from_10 = tmp_import_from_2__module;
if ( PyModule_Check( tmp_import_name_from_10 ) )
{
tmp_assign_source_39 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_10,
(PyObject *)MODULE_DICT(tmp_import_name_from_10),
const_str_plain_SystemTimeWarning,
const_int_pos_1
);
}
else
{
tmp_assign_source_39 = IMPORT_NAME( tmp_import_name_from_10, const_str_plain_SystemTimeWarning );
}
if ( tmp_assign_source_39 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 31;
goto try_except_handler_12;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_SystemTimeWarning, tmp_assign_source_39 );
}
goto try_end_8;
// Exception handler code:
try_except_handler_12:;
exception_keeper_type_12 = exception_type;
exception_keeper_value_12 = exception_value;
exception_keeper_tb_12 = exception_tb;
exception_keeper_lineno_12 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
CHECK_OBJECT( (PyObject *)tmp_import_from_2__module );
Py_DECREF( tmp_import_from_2__module );
tmp_import_from_2__module = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_12;
exception_value = exception_keeper_value_12;
exception_tb = exception_keeper_tb_12;
exception_lineno = exception_keeper_lineno_12;
goto frame_exception_exit_1;
}
// End of try:
try_end_8:;
}
{
CHECK_OBJECT( (PyObject *)tmp_import_from_2__module );
Py_DECREF( tmp_import_from_2__module );
tmp_import_from_2__module = NULL;
}
{
PyObject *tmp_assign_source_40;
PyObject *tmp_name_name_13;
PyObject *tmp_globals_name_13;
PyObject *tmp_locals_name_13;
PyObject *tmp_fromlist_name_13;
PyObject *tmp_level_name_13;
tmp_name_name_13 = const_str_digest_0a2ea16757d4dad15d4c8e0ada40cd0c;
tmp_globals_name_13 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_13 = Py_None;
tmp_fromlist_name_13 = const_tuple_str_plain_match_hostname_str_plain_CertificateError_tuple;
tmp_level_name_13 = const_int_pos_1;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 37;
tmp_assign_source_40 = IMPORT_MODULE5( tmp_name_name_13, tmp_globals_name_13, tmp_locals_name_13, tmp_fromlist_name_13, tmp_level_name_13 );
if ( tmp_assign_source_40 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 37;
goto frame_exception_exit_1;
}
assert( tmp_import_from_3__module == NULL );
tmp_import_from_3__module = tmp_assign_source_40;
}
{
// Tried code:
{
PyObject *tmp_assign_source_41;
PyObject *tmp_import_name_from_11;
CHECK_OBJECT( tmp_import_from_3__module );
tmp_import_name_from_11 = tmp_import_from_3__module;
if ( PyModule_Check( tmp_import_name_from_11 ) )
{
tmp_assign_source_41 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_11,
(PyObject *)MODULE_DICT(tmp_import_name_from_11),
const_str_plain_match_hostname,
const_int_pos_1
);
}
else
{
tmp_assign_source_41 = IMPORT_NAME( tmp_import_name_from_11, const_str_plain_match_hostname );
}
if ( tmp_assign_source_41 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 37;
goto try_except_handler_13;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_match_hostname, tmp_assign_source_41 );
}
{
PyObject *tmp_assign_source_42;
PyObject *tmp_import_name_from_12;
CHECK_OBJECT( tmp_import_from_3__module );
tmp_import_name_from_12 = tmp_import_from_3__module;
if ( PyModule_Check( tmp_import_name_from_12 ) )
{
tmp_assign_source_42 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_12,
(PyObject *)MODULE_DICT(tmp_import_name_from_12),
const_str_plain_CertificateError,
const_int_pos_1
);
}
else
{
tmp_assign_source_42 = IMPORT_NAME( tmp_import_name_from_12, const_str_plain_CertificateError );
}
if ( tmp_assign_source_42 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 37;
goto try_except_handler_13;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_CertificateError, tmp_assign_source_42 );
}
goto try_end_9;
// Exception handler code:
try_except_handler_13:;
exception_keeper_type_13 = exception_type;
exception_keeper_value_13 = exception_value;
exception_keeper_tb_13 = exception_tb;
exception_keeper_lineno_13 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
CHECK_OBJECT( (PyObject *)tmp_import_from_3__module );
Py_DECREF( tmp_import_from_3__module );
tmp_import_from_3__module = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_13;
exception_value = exception_keeper_value_13;
exception_tb = exception_keeper_tb_13;
exception_lineno = exception_keeper_lineno_13;
goto frame_exception_exit_1;
}
// End of try:
try_end_9:;
}
{
CHECK_OBJECT( (PyObject *)tmp_import_from_3__module );
Py_DECREF( tmp_import_from_3__module );
tmp_import_from_3__module = NULL;
}
{
PyObject *tmp_assign_source_43;
PyObject *tmp_name_name_14;
PyObject *tmp_globals_name_14;
PyObject *tmp_locals_name_14;
PyObject *tmp_fromlist_name_14;
PyObject *tmp_level_name_14;
tmp_name_name_14 = const_str_digest_fbcb06792f2497ac6c7abd423e9e2d62;
tmp_globals_name_14 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_14 = Py_None;
tmp_fromlist_name_14 = const_tuple_659bcfd89e2a907d800ea69675ef86b4_tuple;
tmp_level_name_14 = const_int_pos_1;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 39;
tmp_assign_source_43 = IMPORT_MODULE5( tmp_name_name_14, tmp_globals_name_14, tmp_locals_name_14, tmp_fromlist_name_14, tmp_level_name_14 );
if ( tmp_assign_source_43 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 39;
goto frame_exception_exit_1;
}
assert( tmp_import_from_4__module == NULL );
tmp_import_from_4__module = tmp_assign_source_43;
}
{
// Tried code:
{
PyObject *tmp_assign_source_44;
PyObject *tmp_import_name_from_13;
CHECK_OBJECT( tmp_import_from_4__module );
tmp_import_name_from_13 = tmp_import_from_4__module;
if ( PyModule_Check( tmp_import_name_from_13 ) )
{
tmp_assign_source_44 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_13,
(PyObject *)MODULE_DICT(tmp_import_name_from_13),
const_str_plain_resolve_cert_reqs,
const_int_pos_1
);
}
else
{
tmp_assign_source_44 = IMPORT_NAME( tmp_import_name_from_13, const_str_plain_resolve_cert_reqs );
}
if ( tmp_assign_source_44 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 39;
goto try_except_handler_14;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_resolve_cert_reqs, tmp_assign_source_44 );
}
{
PyObject *tmp_assign_source_45;
PyObject *tmp_import_name_from_14;
CHECK_OBJECT( tmp_import_from_4__module );
tmp_import_name_from_14 = tmp_import_from_4__module;
if ( PyModule_Check( tmp_import_name_from_14 ) )
{
tmp_assign_source_45 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_14,
(PyObject *)MODULE_DICT(tmp_import_name_from_14),
const_str_plain_resolve_ssl_version,
const_int_pos_1
);
}
else
{
tmp_assign_source_45 = IMPORT_NAME( tmp_import_name_from_14, const_str_plain_resolve_ssl_version );
}
if ( tmp_assign_source_45 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 39;
goto try_except_handler_14;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_resolve_ssl_version, tmp_assign_source_45 );
}
{
PyObject *tmp_assign_source_46;
PyObject *tmp_import_name_from_15;
CHECK_OBJECT( tmp_import_from_4__module );
tmp_import_name_from_15 = tmp_import_from_4__module;
if ( PyModule_Check( tmp_import_name_from_15 ) )
{
tmp_assign_source_46 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_15,
(PyObject *)MODULE_DICT(tmp_import_name_from_15),
const_str_plain_assert_fingerprint,
const_int_pos_1
);
}
else
{
tmp_assign_source_46 = IMPORT_NAME( tmp_import_name_from_15, const_str_plain_assert_fingerprint );
}
if ( tmp_assign_source_46 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 39;
goto try_except_handler_14;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_assert_fingerprint, tmp_assign_source_46 );
}
{
PyObject *tmp_assign_source_47;
PyObject *tmp_import_name_from_16;
CHECK_OBJECT( tmp_import_from_4__module );
tmp_import_name_from_16 = tmp_import_from_4__module;
if ( PyModule_Check( tmp_import_name_from_16 ) )
{
tmp_assign_source_47 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_16,
(PyObject *)MODULE_DICT(tmp_import_name_from_16),
const_str_plain_create_urllib3_context,
const_int_pos_1
);
}
else
{
tmp_assign_source_47 = IMPORT_NAME( tmp_import_name_from_16, const_str_plain_create_urllib3_context );
}
if ( tmp_assign_source_47 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 39;
goto try_except_handler_14;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_create_urllib3_context, tmp_assign_source_47 );
}
{
PyObject *tmp_assign_source_48;
PyObject *tmp_import_name_from_17;
CHECK_OBJECT( tmp_import_from_4__module );
tmp_import_name_from_17 = tmp_import_from_4__module;
if ( PyModule_Check( tmp_import_name_from_17 ) )
{
tmp_assign_source_48 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_17,
(PyObject *)MODULE_DICT(tmp_import_name_from_17),
const_str_plain_ssl_wrap_socket,
const_int_pos_1
);
}
else
{
tmp_assign_source_48 = IMPORT_NAME( tmp_import_name_from_17, const_str_plain_ssl_wrap_socket );
}
if ( tmp_assign_source_48 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 39;
goto try_except_handler_14;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ssl_wrap_socket, tmp_assign_source_48 );
}
goto try_end_10;
// Exception handler code:
try_except_handler_14:;
exception_keeper_type_14 = exception_type;
exception_keeper_value_14 = exception_value;
exception_keeper_tb_14 = exception_tb;
exception_keeper_lineno_14 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
CHECK_OBJECT( (PyObject *)tmp_import_from_4__module );
Py_DECREF( tmp_import_from_4__module );
tmp_import_from_4__module = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_14;
exception_value = exception_keeper_value_14;
exception_tb = exception_keeper_tb_14;
exception_lineno = exception_keeper_lineno_14;
goto frame_exception_exit_1;
}
// End of try:
try_end_10:;
}
{
CHECK_OBJECT( (PyObject *)tmp_import_from_4__module );
Py_DECREF( tmp_import_from_4__module );
tmp_import_from_4__module = NULL;
}
{
PyObject *tmp_assign_source_49;
PyObject *tmp_import_name_from_18;
PyObject *tmp_name_name_15;
PyObject *tmp_globals_name_15;
PyObject *tmp_locals_name_15;
PyObject *tmp_fromlist_name_15;
PyObject *tmp_level_name_15;
tmp_name_name_15 = const_str_plain_util;
tmp_globals_name_15 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_15 = Py_None;
tmp_fromlist_name_15 = const_tuple_str_plain_connection_tuple;
tmp_level_name_15 = const_int_pos_1;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 48;
tmp_import_name_from_18 = IMPORT_MODULE5( tmp_name_name_15, tmp_globals_name_15, tmp_locals_name_15, tmp_fromlist_name_15, tmp_level_name_15 );
if ( tmp_import_name_from_18 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 48;
goto frame_exception_exit_1;
}
if ( PyModule_Check( tmp_import_name_from_18 ) )
{
tmp_assign_source_49 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_18,
(PyObject *)MODULE_DICT(tmp_import_name_from_18),
const_str_plain_connection,
const_int_pos_1
);
}
else
{
tmp_assign_source_49 = IMPORT_NAME( tmp_import_name_from_18, const_str_plain_connection );
}
Py_DECREF( tmp_import_name_from_18 );
if ( tmp_assign_source_49 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 48;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_connection, tmp_assign_source_49 );
}
{
PyObject *tmp_assign_source_50;
PyObject *tmp_import_name_from_19;
PyObject *tmp_name_name_16;
PyObject *tmp_globals_name_16;
PyObject *tmp_locals_name_16;
PyObject *tmp_fromlist_name_16;
PyObject *tmp_level_name_16;
tmp_name_name_16 = const_str_plain__collections;
tmp_globals_name_16 = (PyObject *)moduledict_urllib3$connection;
tmp_locals_name_16 = Py_None;
tmp_fromlist_name_16 = const_tuple_str_plain_HTTPHeaderDict_tuple;
tmp_level_name_16 = const_int_pos_1;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 50;
tmp_import_name_from_19 = IMPORT_MODULE5( tmp_name_name_16, tmp_globals_name_16, tmp_locals_name_16, tmp_fromlist_name_16, tmp_level_name_16 );
if ( tmp_import_name_from_19 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 50;
goto frame_exception_exit_1;
}
if ( PyModule_Check( tmp_import_name_from_19 ) )
{
tmp_assign_source_50 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_19,
(PyObject *)MODULE_DICT(tmp_import_name_from_19),
const_str_plain_HTTPHeaderDict,
const_int_pos_1
);
}
else
{
tmp_assign_source_50 = IMPORT_NAME( tmp_import_name_from_19, const_str_plain_HTTPHeaderDict );
}
Py_DECREF( tmp_import_name_from_19 );
if ( tmp_assign_source_50 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 50;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPHeaderDict, tmp_assign_source_50 );
}
{
PyObject *tmp_assign_source_51;
PyObject *tmp_called_instance_1;
PyObject *tmp_mvar_value_3;
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_logging );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_logging );
}
if ( tmp_mvar_value_3 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "logging" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 52;
goto frame_exception_exit_1;
}
tmp_called_instance_1 = tmp_mvar_value_3;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 52;
tmp_assign_source_51 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_getLogger, &PyTuple_GET_ITEM( const_tuple_str_digest_003800fb824e3437bbbf235acf31301c_tuple, 0 ) );
if ( tmp_assign_source_51 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 52;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_log, tmp_assign_source_51 );
}
{
PyObject *tmp_assign_source_52;
tmp_assign_source_52 = PyDict_Copy( const_dict_93916f845314fde3dc45a1c4d3d34ff8 );
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_port_by_scheme, tmp_assign_source_52 );
}
{
PyObject *tmp_assign_source_53;
PyObject *tmp_called_instance_2;
PyObject *tmp_mvar_value_4;
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_datetime );
if (unlikely( tmp_mvar_value_4 == NULL ))
{
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_datetime );
}
if ( tmp_mvar_value_4 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "datetime" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 63;
goto frame_exception_exit_1;
}
tmp_called_instance_2 = tmp_mvar_value_4;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 63;
tmp_assign_source_53 = CALL_METHOD_WITH_ARGS3( tmp_called_instance_2, const_str_plain_date, &PyTuple_GET_ITEM( const_tuple_int_pos_2017_int_pos_6_int_pos_30_tuple, 0 ) );
if ( tmp_assign_source_53 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 63;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_RECENT_DATE, tmp_assign_source_53 );
}
{
// Tried code:
{
PyObject *tmp_assign_source_54;
PyObject *tmp_dircall_arg1_3;
tmp_dircall_arg1_3 = const_tuple_type_object_tuple;
Py_INCREF( tmp_dircall_arg1_3 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_3};
tmp_assign_source_54 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
}
if ( tmp_assign_source_54 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
assert( tmp_class_creation_3__bases == NULL );
tmp_class_creation_3__bases = tmp_assign_source_54;
}
{
PyObject *tmp_assign_source_55;
tmp_assign_source_55 = PyDict_New();
assert( tmp_class_creation_3__class_decl_dict == NULL );
tmp_class_creation_3__class_decl_dict = tmp_assign_source_55;
}
{
PyObject *tmp_assign_source_56;
PyObject *tmp_metaclass_name_3;
nuitka_bool tmp_condition_result_15;
PyObject *tmp_key_name_7;
PyObject *tmp_dict_name_7;
PyObject *tmp_dict_name_8;
PyObject *tmp_key_name_8;
nuitka_bool tmp_condition_result_16;
int tmp_truth_name_3;
PyObject *tmp_type_arg_5;
PyObject *tmp_subscribed_name_3;
PyObject *tmp_subscript_name_3;
PyObject *tmp_bases_name_3;
tmp_key_name_7 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
tmp_dict_name_7 = tmp_class_creation_3__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_7, tmp_key_name_7 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
tmp_condition_result_15 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_15 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_5;
}
else
{
goto condexpr_false_5;
}
condexpr_true_5:;
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
tmp_dict_name_8 = tmp_class_creation_3__class_decl_dict;
tmp_key_name_8 = const_str_plain_metaclass;
tmp_metaclass_name_3 = DICT_GET_ITEM( tmp_dict_name_8, tmp_key_name_8 );
if ( tmp_metaclass_name_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
goto condexpr_end_5;
condexpr_false_5:;
CHECK_OBJECT( tmp_class_creation_3__bases );
tmp_truth_name_3 = CHECK_IF_TRUE( tmp_class_creation_3__bases );
if ( tmp_truth_name_3 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
tmp_condition_result_16 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_16 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_6;
}
else
{
goto condexpr_false_6;
}
condexpr_true_6:;
CHECK_OBJECT( tmp_class_creation_3__bases );
tmp_subscribed_name_3 = tmp_class_creation_3__bases;
tmp_subscript_name_3 = const_int_0;
tmp_type_arg_5 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_3, tmp_subscript_name_3, 0 );
if ( tmp_type_arg_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
tmp_metaclass_name_3 = BUILTIN_TYPE1( tmp_type_arg_5 );
Py_DECREF( tmp_type_arg_5 );
if ( tmp_metaclass_name_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
goto condexpr_end_6;
condexpr_false_6:;
tmp_metaclass_name_3 = (PyObject *)&PyType_Type;
Py_INCREF( tmp_metaclass_name_3 );
condexpr_end_6:;
condexpr_end_5:;
CHECK_OBJECT( tmp_class_creation_3__bases );
tmp_bases_name_3 = tmp_class_creation_3__bases;
tmp_assign_source_56 = SELECT_METACLASS( tmp_metaclass_name_3, tmp_bases_name_3 );
Py_DECREF( tmp_metaclass_name_3 );
if ( tmp_assign_source_56 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
assert( tmp_class_creation_3__metaclass == NULL );
tmp_class_creation_3__metaclass = tmp_assign_source_56;
}
{
nuitka_bool tmp_condition_result_17;
PyObject *tmp_key_name_9;
PyObject *tmp_dict_name_9;
tmp_key_name_9 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
tmp_dict_name_9 = tmp_class_creation_3__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_9, tmp_key_name_9 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
tmp_condition_result_17 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_17 == NUITKA_BOOL_TRUE )
{
goto branch_yes_11;
}
else
{
goto branch_no_11;
}
branch_yes_11:;
{
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
tmp_dictdel_dict = tmp_class_creation_3__class_decl_dict;
tmp_dictdel_key = const_str_plain_metaclass;
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
}
branch_no_11:;
}
{
nuitka_bool tmp_condition_result_18;
PyObject *tmp_source_name_10;
CHECK_OBJECT( tmp_class_creation_3__metaclass );
tmp_source_name_10 = tmp_class_creation_3__metaclass;
tmp_res = PyObject_HasAttr( tmp_source_name_10, const_str_plain___prepare__ );
tmp_condition_result_18 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_18 == NUITKA_BOOL_TRUE )
{
goto branch_yes_12;
}
else
{
goto branch_no_12;
}
branch_yes_12:;
{
PyObject *tmp_assign_source_57;
PyObject *tmp_called_name_5;
PyObject *tmp_source_name_11;
PyObject *tmp_args_name_5;
PyObject *tmp_tuple_element_7;
PyObject *tmp_kw_name_5;
CHECK_OBJECT( tmp_class_creation_3__metaclass );
tmp_source_name_11 = tmp_class_creation_3__metaclass;
tmp_called_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain___prepare__ );
if ( tmp_called_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
tmp_tuple_element_7 = const_str_plain_DummyConnection;
tmp_args_name_5 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_7 );
PyTuple_SET_ITEM( tmp_args_name_5, 0, tmp_tuple_element_7 );
CHECK_OBJECT( tmp_class_creation_3__bases );
tmp_tuple_element_7 = tmp_class_creation_3__bases;
Py_INCREF( tmp_tuple_element_7 );
PyTuple_SET_ITEM( tmp_args_name_5, 1, tmp_tuple_element_7 );
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
tmp_kw_name_5 = tmp_class_creation_3__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 66;
tmp_assign_source_57 = CALL_FUNCTION( tmp_called_name_5, tmp_args_name_5, tmp_kw_name_5 );
Py_DECREF( tmp_called_name_5 );
Py_DECREF( tmp_args_name_5 );
if ( tmp_assign_source_57 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
assert( tmp_class_creation_3__prepared == NULL );
tmp_class_creation_3__prepared = tmp_assign_source_57;
}
{
nuitka_bool tmp_condition_result_19;
PyObject *tmp_operand_name_3;
PyObject *tmp_source_name_12;
CHECK_OBJECT( tmp_class_creation_3__prepared );
tmp_source_name_12 = tmp_class_creation_3__prepared;
tmp_res = PyObject_HasAttr( tmp_source_name_12, const_str_plain___getitem__ );
tmp_operand_name_3 = ( tmp_res != 0 ) ? Py_True : Py_False;
tmp_res = CHECK_IF_TRUE( tmp_operand_name_3 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
tmp_condition_result_19 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_19 == NUITKA_BOOL_TRUE )
{
goto branch_yes_13;
}
else
{
goto branch_no_13;
}
branch_yes_13:;
{
PyObject *tmp_raise_type_3;
PyObject *tmp_raise_value_3;
PyObject *tmp_left_name_3;
PyObject *tmp_right_name_3;
PyObject *tmp_tuple_element_8;
PyObject *tmp_getattr_target_3;
PyObject *tmp_getattr_attr_3;
PyObject *tmp_getattr_default_3;
PyObject *tmp_source_name_13;
PyObject *tmp_type_arg_6;
tmp_raise_type_3 = PyExc_TypeError;
tmp_left_name_3 = const_str_digest_75fd71b1edada749c2ef7ac810062295;
CHECK_OBJECT( tmp_class_creation_3__metaclass );
tmp_getattr_target_3 = tmp_class_creation_3__metaclass;
tmp_getattr_attr_3 = const_str_plain___name__;
tmp_getattr_default_3 = const_str_angle_metaclass;
tmp_tuple_element_8 = BUILTIN_GETATTR( tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3 );
if ( tmp_tuple_element_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
tmp_right_name_3 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_right_name_3, 0, tmp_tuple_element_8 );
CHECK_OBJECT( tmp_class_creation_3__prepared );
tmp_type_arg_6 = tmp_class_creation_3__prepared;
tmp_source_name_13 = BUILTIN_TYPE1( tmp_type_arg_6 );
assert( !(tmp_source_name_13 == NULL) );
tmp_tuple_element_8 = LOOKUP_ATTRIBUTE( tmp_source_name_13, const_str_plain___name__ );
Py_DECREF( tmp_source_name_13 );
if ( tmp_tuple_element_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_right_name_3 );
exception_lineno = 66;
goto try_except_handler_15;
}
PyTuple_SET_ITEM( tmp_right_name_3, 1, tmp_tuple_element_8 );
tmp_raise_value_3 = BINARY_OPERATION_REMAINDER( tmp_left_name_3, tmp_right_name_3 );
Py_DECREF( tmp_right_name_3 );
if ( tmp_raise_value_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_15;
}
exception_type = tmp_raise_type_3;
Py_INCREF( tmp_raise_type_3 );
exception_value = tmp_raise_value_3;
exception_lineno = 66;
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
goto try_except_handler_15;
}
branch_no_13:;
}
goto branch_end_12;
branch_no_12:;
{
PyObject *tmp_assign_source_58;
tmp_assign_source_58 = PyDict_New();
assert( tmp_class_creation_3__prepared == NULL );
tmp_class_creation_3__prepared = tmp_assign_source_58;
}
branch_end_12:;
}
{
PyObject *tmp_assign_source_59;
{
PyObject *tmp_set_locals_3;
CHECK_OBJECT( tmp_class_creation_3__prepared );
tmp_set_locals_3 = tmp_class_creation_3__prepared;
locals_urllib3$connection_66 = tmp_set_locals_3;
Py_INCREF( tmp_set_locals_3 );
}
{
// Tried code:
{
// Tried code:
{
tmp_dictset_value = const_str_digest_003800fb824e3437bbbf235acf31301c;
tmp_res = PyObject_SetItem( locals_urllib3$connection_66, const_str_plain___module__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_17;
}
}
{
tmp_dictset_value = const_str_digest_df5958c87718dd50f2e0bfe7cc6ada5c;
tmp_res = PyObject_SetItem( locals_urllib3$connection_66, const_str_plain___doc__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_17;
}
}
{
tmp_dictset_value = const_str_plain_DummyConnection;
tmp_res = PyObject_SetItem( locals_urllib3$connection_66, const_str_plain___qualname__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_17;
}
}
{
nuitka_bool tmp_condition_result_20;
PyObject *tmp_compexpr_left_5;
PyObject *tmp_compexpr_right_5;
CHECK_OBJECT( tmp_class_creation_3__bases );
tmp_compexpr_left_5 = tmp_class_creation_3__bases;
tmp_compexpr_right_5 = const_tuple_type_object_tuple;
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_5, tmp_compexpr_right_5 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_17;
}
tmp_condition_result_20 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_20 == NUITKA_BOOL_TRUE )
{
goto branch_yes_14;
}
else
{
goto branch_no_14;
}
branch_yes_14:;
{
tmp_dictset_value = const_tuple_type_object_tuple;
tmp_res = PyObject_SetItem( locals_urllib3$connection_66, const_str_plain___orig_bases__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_17;
}
}
branch_no_14:;
}
{
PyObject *tmp_assign_source_60;
PyObject *tmp_called_name_6;
PyObject *tmp_args_name_6;
PyObject *tmp_tuple_element_9;
PyObject *tmp_kw_name_6;
CHECK_OBJECT( tmp_class_creation_3__metaclass );
tmp_called_name_6 = tmp_class_creation_3__metaclass;
tmp_tuple_element_9 = const_str_plain_DummyConnection;
tmp_args_name_6 = PyTuple_New( 3 );
Py_INCREF( tmp_tuple_element_9 );
PyTuple_SET_ITEM( tmp_args_name_6, 0, tmp_tuple_element_9 );
CHECK_OBJECT( tmp_class_creation_3__bases );
tmp_tuple_element_9 = tmp_class_creation_3__bases;
Py_INCREF( tmp_tuple_element_9 );
PyTuple_SET_ITEM( tmp_args_name_6, 1, tmp_tuple_element_9 );
tmp_tuple_element_9 = locals_urllib3$connection_66;
Py_INCREF( tmp_tuple_element_9 );
PyTuple_SET_ITEM( tmp_args_name_6, 2, tmp_tuple_element_9 );
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
tmp_kw_name_6 = tmp_class_creation_3__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 66;
tmp_assign_source_60 = CALL_FUNCTION( tmp_called_name_6, tmp_args_name_6, tmp_kw_name_6 );
Py_DECREF( tmp_args_name_6 );
if ( tmp_assign_source_60 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 66;
goto try_except_handler_17;
}
assert( outline_2_var___class__ == NULL );
outline_2_var___class__ = tmp_assign_source_60;
}
{
CHECK_OBJECT( outline_2_var___class__ );
tmp_assign_source_59 = outline_2_var___class__;
Py_INCREF( tmp_assign_source_59 );
goto try_return_handler_17;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_17:;
{
Py_DECREF( locals_urllib3$connection_66 );
locals_urllib3$connection_66 = NULL;
}
{
goto try_return_handler_16;
}
// Exception handler code:
try_except_handler_17:;
exception_keeper_type_15 = exception_type;
exception_keeper_value_15 = exception_value;
exception_keeper_tb_15 = exception_tb;
exception_keeper_lineno_15 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_DECREF( locals_urllib3$connection_66 );
locals_urllib3$connection_66 = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_15;
exception_value = exception_keeper_value_15;
exception_tb = exception_keeper_tb_15;
exception_lineno = exception_keeper_lineno_15;
goto try_except_handler_16;
}
// End of try:
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_16:;
{
CHECK_OBJECT( (PyObject *)outline_2_var___class__ );
Py_DECREF( outline_2_var___class__ );
outline_2_var___class__ = NULL;
}
{
goto outline_result_3;
}
// Exception handler code:
try_except_handler_16:;
exception_keeper_type_16 = exception_type;
exception_keeper_value_16 = exception_value;
exception_keeper_tb_16 = exception_tb;
exception_keeper_lineno_16 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Re-raise.
exception_type = exception_keeper_type_16;
exception_value = exception_keeper_value_16;
exception_tb = exception_keeper_tb_16;
exception_lineno = exception_keeper_lineno_16;
goto outline_exception_3;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
outline_exception_3:;
exception_lineno = 66;
goto try_except_handler_15;
outline_result_3:;
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_DummyConnection, tmp_assign_source_59 );
}
goto try_end_11;
// Exception handler code:
try_except_handler_15:;
exception_keeper_type_17 = exception_type;
exception_keeper_value_17 = exception_value;
exception_keeper_tb_17 = exception_tb;
exception_keeper_lineno_17 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_class_creation_3__bases );
tmp_class_creation_3__bases = NULL;
}
{
Py_XDECREF( tmp_class_creation_3__class_decl_dict );
tmp_class_creation_3__class_decl_dict = NULL;
}
{
Py_XDECREF( tmp_class_creation_3__metaclass );
tmp_class_creation_3__metaclass = NULL;
}
{
Py_XDECREF( tmp_class_creation_3__prepared );
tmp_class_creation_3__prepared = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_17;
exception_value = exception_keeper_value_17;
exception_tb = exception_keeper_tb_17;
exception_lineno = exception_keeper_lineno_17;
goto frame_exception_exit_1;
}
// End of try:
try_end_11:;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_3__bases );
Py_DECREF( tmp_class_creation_3__bases );
tmp_class_creation_3__bases = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_3__class_decl_dict );
Py_DECREF( tmp_class_creation_3__class_decl_dict );
tmp_class_creation_3__class_decl_dict = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_3__metaclass );
Py_DECREF( tmp_class_creation_3__metaclass );
tmp_class_creation_3__metaclass = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_3__prepared );
Py_DECREF( tmp_class_creation_3__prepared );
tmp_class_creation_3__prepared = NULL;
}
{
// Tried code:
{
PyObject *tmp_assign_source_61;
PyObject *tmp_tuple_element_10;
PyObject *tmp_mvar_value_5;
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain__HTTPConnection );
if (unlikely( tmp_mvar_value_5 == NULL ))
{
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__HTTPConnection );
}
if ( tmp_mvar_value_5 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_HTTPConnection" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 71;
goto try_except_handler_18;
}
tmp_tuple_element_10 = tmp_mvar_value_5;
tmp_assign_source_61 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_10 );
PyTuple_SET_ITEM( tmp_assign_source_61, 0, tmp_tuple_element_10 );
tmp_tuple_element_10 = (PyObject *)&PyBaseObject_Type;
Py_INCREF( tmp_tuple_element_10 );
PyTuple_SET_ITEM( tmp_assign_source_61, 1, tmp_tuple_element_10 );
assert( tmp_class_creation_4__bases_orig == NULL );
tmp_class_creation_4__bases_orig = tmp_assign_source_61;
}
{
PyObject *tmp_assign_source_62;
PyObject *tmp_dircall_arg1_4;
CHECK_OBJECT( tmp_class_creation_4__bases_orig );
tmp_dircall_arg1_4 = tmp_class_creation_4__bases_orig;
Py_INCREF( tmp_dircall_arg1_4 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_4};
tmp_assign_source_62 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
}
if ( tmp_assign_source_62 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
assert( tmp_class_creation_4__bases == NULL );
tmp_class_creation_4__bases = tmp_assign_source_62;
}
{
PyObject *tmp_assign_source_63;
tmp_assign_source_63 = PyDict_New();
assert( tmp_class_creation_4__class_decl_dict == NULL );
tmp_class_creation_4__class_decl_dict = tmp_assign_source_63;
}
{
PyObject *tmp_assign_source_64;
PyObject *tmp_metaclass_name_4;
nuitka_bool tmp_condition_result_21;
PyObject *tmp_key_name_10;
PyObject *tmp_dict_name_10;
PyObject *tmp_dict_name_11;
PyObject *tmp_key_name_11;
nuitka_bool tmp_condition_result_22;
int tmp_truth_name_4;
PyObject *tmp_type_arg_7;
PyObject *tmp_subscribed_name_4;
PyObject *tmp_subscript_name_4;
PyObject *tmp_bases_name_4;
tmp_key_name_10 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_4__class_decl_dict );
tmp_dict_name_10 = tmp_class_creation_4__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_10, tmp_key_name_10 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
tmp_condition_result_21 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_21 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_7;
}
else
{
goto condexpr_false_7;
}
condexpr_true_7:;
CHECK_OBJECT( tmp_class_creation_4__class_decl_dict );
tmp_dict_name_11 = tmp_class_creation_4__class_decl_dict;
tmp_key_name_11 = const_str_plain_metaclass;
tmp_metaclass_name_4 = DICT_GET_ITEM( tmp_dict_name_11, tmp_key_name_11 );
if ( tmp_metaclass_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
goto condexpr_end_7;
condexpr_false_7:;
CHECK_OBJECT( tmp_class_creation_4__bases );
tmp_truth_name_4 = CHECK_IF_TRUE( tmp_class_creation_4__bases );
if ( tmp_truth_name_4 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
tmp_condition_result_22 = tmp_truth_name_4 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_22 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_8;
}
else
{
goto condexpr_false_8;
}
condexpr_true_8:;
CHECK_OBJECT( tmp_class_creation_4__bases );
tmp_subscribed_name_4 = tmp_class_creation_4__bases;
tmp_subscript_name_4 = const_int_0;
tmp_type_arg_7 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_4, tmp_subscript_name_4, 0 );
if ( tmp_type_arg_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
tmp_metaclass_name_4 = BUILTIN_TYPE1( tmp_type_arg_7 );
Py_DECREF( tmp_type_arg_7 );
if ( tmp_metaclass_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
goto condexpr_end_8;
condexpr_false_8:;
tmp_metaclass_name_4 = (PyObject *)&PyType_Type;
Py_INCREF( tmp_metaclass_name_4 );
condexpr_end_8:;
condexpr_end_7:;
CHECK_OBJECT( tmp_class_creation_4__bases );
tmp_bases_name_4 = tmp_class_creation_4__bases;
tmp_assign_source_64 = SELECT_METACLASS( tmp_metaclass_name_4, tmp_bases_name_4 );
Py_DECREF( tmp_metaclass_name_4 );
if ( tmp_assign_source_64 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
assert( tmp_class_creation_4__metaclass == NULL );
tmp_class_creation_4__metaclass = tmp_assign_source_64;
}
{
nuitka_bool tmp_condition_result_23;
PyObject *tmp_key_name_12;
PyObject *tmp_dict_name_12;
tmp_key_name_12 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_4__class_decl_dict );
tmp_dict_name_12 = tmp_class_creation_4__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_12, tmp_key_name_12 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
tmp_condition_result_23 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_23 == NUITKA_BOOL_TRUE )
{
goto branch_yes_15;
}
else
{
goto branch_no_15;
}
branch_yes_15:;
{
CHECK_OBJECT( tmp_class_creation_4__class_decl_dict );
tmp_dictdel_dict = tmp_class_creation_4__class_decl_dict;
tmp_dictdel_key = const_str_plain_metaclass;
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
}
branch_no_15:;
}
{
nuitka_bool tmp_condition_result_24;
PyObject *tmp_source_name_14;
CHECK_OBJECT( tmp_class_creation_4__metaclass );
tmp_source_name_14 = tmp_class_creation_4__metaclass;
tmp_res = PyObject_HasAttr( tmp_source_name_14, const_str_plain___prepare__ );
tmp_condition_result_24 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_24 == NUITKA_BOOL_TRUE )
{
goto branch_yes_16;
}
else
{
goto branch_no_16;
}
branch_yes_16:;
{
PyObject *tmp_assign_source_65;
PyObject *tmp_called_name_7;
PyObject *tmp_source_name_15;
PyObject *tmp_args_name_7;
PyObject *tmp_tuple_element_11;
PyObject *tmp_kw_name_7;
CHECK_OBJECT( tmp_class_creation_4__metaclass );
tmp_source_name_15 = tmp_class_creation_4__metaclass;
tmp_called_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_15, const_str_plain___prepare__ );
if ( tmp_called_name_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
tmp_tuple_element_11 = const_str_plain_HTTPConnection;
tmp_args_name_7 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_11 );
PyTuple_SET_ITEM( tmp_args_name_7, 0, tmp_tuple_element_11 );
CHECK_OBJECT( tmp_class_creation_4__bases );
tmp_tuple_element_11 = tmp_class_creation_4__bases;
Py_INCREF( tmp_tuple_element_11 );
PyTuple_SET_ITEM( tmp_args_name_7, 1, tmp_tuple_element_11 );
CHECK_OBJECT( tmp_class_creation_4__class_decl_dict );
tmp_kw_name_7 = tmp_class_creation_4__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 71;
tmp_assign_source_65 = CALL_FUNCTION( tmp_called_name_7, tmp_args_name_7, tmp_kw_name_7 );
Py_DECREF( tmp_called_name_7 );
Py_DECREF( tmp_args_name_7 );
if ( tmp_assign_source_65 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
assert( tmp_class_creation_4__prepared == NULL );
tmp_class_creation_4__prepared = tmp_assign_source_65;
}
{
nuitka_bool tmp_condition_result_25;
PyObject *tmp_operand_name_4;
PyObject *tmp_source_name_16;
CHECK_OBJECT( tmp_class_creation_4__prepared );
tmp_source_name_16 = tmp_class_creation_4__prepared;
tmp_res = PyObject_HasAttr( tmp_source_name_16, const_str_plain___getitem__ );
tmp_operand_name_4 = ( tmp_res != 0 ) ? Py_True : Py_False;
tmp_res = CHECK_IF_TRUE( tmp_operand_name_4 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
tmp_condition_result_25 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_25 == NUITKA_BOOL_TRUE )
{
goto branch_yes_17;
}
else
{
goto branch_no_17;
}
branch_yes_17:;
{
PyObject *tmp_raise_type_4;
PyObject *tmp_raise_value_4;
PyObject *tmp_left_name_4;
PyObject *tmp_right_name_4;
PyObject *tmp_tuple_element_12;
PyObject *tmp_getattr_target_4;
PyObject *tmp_getattr_attr_4;
PyObject *tmp_getattr_default_4;
PyObject *tmp_source_name_17;
PyObject *tmp_type_arg_8;
tmp_raise_type_4 = PyExc_TypeError;
tmp_left_name_4 = const_str_digest_75fd71b1edada749c2ef7ac810062295;
CHECK_OBJECT( tmp_class_creation_4__metaclass );
tmp_getattr_target_4 = tmp_class_creation_4__metaclass;
tmp_getattr_attr_4 = const_str_plain___name__;
tmp_getattr_default_4 = const_str_angle_metaclass;
tmp_tuple_element_12 = BUILTIN_GETATTR( tmp_getattr_target_4, tmp_getattr_attr_4, tmp_getattr_default_4 );
if ( tmp_tuple_element_12 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
tmp_right_name_4 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_right_name_4, 0, tmp_tuple_element_12 );
CHECK_OBJECT( tmp_class_creation_4__prepared );
tmp_type_arg_8 = tmp_class_creation_4__prepared;
tmp_source_name_17 = BUILTIN_TYPE1( tmp_type_arg_8 );
assert( !(tmp_source_name_17 == NULL) );
tmp_tuple_element_12 = LOOKUP_ATTRIBUTE( tmp_source_name_17, const_str_plain___name__ );
Py_DECREF( tmp_source_name_17 );
if ( tmp_tuple_element_12 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_right_name_4 );
exception_lineno = 71;
goto try_except_handler_18;
}
PyTuple_SET_ITEM( tmp_right_name_4, 1, tmp_tuple_element_12 );
tmp_raise_value_4 = BINARY_OPERATION_REMAINDER( tmp_left_name_4, tmp_right_name_4 );
Py_DECREF( tmp_right_name_4 );
if ( tmp_raise_value_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_18;
}
exception_type = tmp_raise_type_4;
Py_INCREF( tmp_raise_type_4 );
exception_value = tmp_raise_value_4;
exception_lineno = 71;
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
goto try_except_handler_18;
}
branch_no_17:;
}
goto branch_end_16;
branch_no_16:;
{
PyObject *tmp_assign_source_66;
tmp_assign_source_66 = PyDict_New();
assert( tmp_class_creation_4__prepared == NULL );
tmp_class_creation_4__prepared = tmp_assign_source_66;
}
branch_end_16:;
}
{
PyObject *tmp_assign_source_67;
{
PyObject *tmp_set_locals_4;
CHECK_OBJECT( tmp_class_creation_4__prepared );
tmp_set_locals_4 = tmp_class_creation_4__prepared;
locals_urllib3$connection_71 = tmp_set_locals_4;
Py_INCREF( tmp_set_locals_4 );
}
{
// Tried code:
{
// Tried code:
{
tmp_dictset_value = const_str_digest_003800fb824e3437bbbf235acf31301c;
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain___module__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_20;
}
}
{
tmp_dictset_value = const_str_digest_b2bd82dd2dbc4f15314a5d4f089060d2;
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain___doc__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_20;
}
}
{
tmp_dictset_value = const_str_plain_HTTPConnection;
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain___qualname__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_20;
}
}
MAKE_OR_REUSE_FRAME( cache_frame_fc8c12040a85b20506c0975151b2b704_2, codeobj_fc8c12040a85b20506c0975151b2b704, module_urllib3$connection, sizeof(void *) );
frame_fc8c12040a85b20506c0975151b2b704_2 = cache_frame_fc8c12040a85b20506c0975151b2b704_2;
// Push the new frame as the currently active one.
pushFrameStack( frame_fc8c12040a85b20506c0975151b2b704_2 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_fc8c12040a85b20506c0975151b2b704_2 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_subscribed_name_5;
PyObject *tmp_mvar_value_6;
PyObject *tmp_subscript_name_5;
tmp_subscribed_name_5 = PyObject_GetItem( locals_urllib3$connection_71, const_str_plain_port_by_scheme );
if ( tmp_subscribed_name_5 == NULL )
{
if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() )
{
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_port_by_scheme );
if (unlikely( tmp_mvar_value_6 == NULL ))
{
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_port_by_scheme );
}
if ( tmp_mvar_value_6 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "port_by_scheme" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 98;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_subscribed_name_5 = tmp_mvar_value_6;
Py_INCREF( tmp_subscribed_name_5 );
}
}
tmp_subscript_name_5 = const_str_plain_http;
tmp_dictset_value = LOOKUP_SUBSCRIPT( tmp_subscribed_name_5, tmp_subscript_name_5 );
Py_DECREF( tmp_subscribed_name_5 );
if ( tmp_dictset_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 98;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain_default_port, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 98;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
PyObject *tmp_list_element_1;
PyObject *tmp_tuple_element_13;
PyObject *tmp_source_name_18;
PyObject *tmp_mvar_value_7;
PyObject *tmp_source_name_19;
PyObject *tmp_mvar_value_8;
tmp_source_name_18 = PyObject_GetItem( locals_urllib3$connection_71, const_str_plain_socket );
if ( tmp_source_name_18 == NULL )
{
if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() )
{
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_socket );
if (unlikely( tmp_mvar_value_7 == NULL ))
{
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_socket );
}
if ( tmp_mvar_value_7 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "socket" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 102;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_source_name_18 = tmp_mvar_value_7;
Py_INCREF( tmp_source_name_18 );
}
}
tmp_tuple_element_13 = LOOKUP_ATTRIBUTE( tmp_source_name_18, const_str_plain_IPPROTO_TCP );
Py_DECREF( tmp_source_name_18 );
if ( tmp_tuple_element_13 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 102;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_list_element_1 = PyTuple_New( 3 );
PyTuple_SET_ITEM( tmp_list_element_1, 0, tmp_tuple_element_13 );
tmp_source_name_19 = PyObject_GetItem( locals_urllib3$connection_71, const_str_plain_socket );
if ( tmp_source_name_19 == NULL )
{
if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() )
{
tmp_mvar_value_8 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_socket );
if (unlikely( tmp_mvar_value_8 == NULL ))
{
tmp_mvar_value_8 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_socket );
}
if ( tmp_mvar_value_8 == NULL )
{
Py_DECREF( tmp_list_element_1 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "socket" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 102;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_source_name_19 = tmp_mvar_value_8;
Py_INCREF( tmp_source_name_19 );
}
}
tmp_tuple_element_13 = LOOKUP_ATTRIBUTE( tmp_source_name_19, const_str_plain_TCP_NODELAY );
Py_DECREF( tmp_source_name_19 );
if ( tmp_tuple_element_13 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_list_element_1 );
exception_lineno = 102;
type_description_2 = "o";
goto frame_exception_exit_2;
}
PyTuple_SET_ITEM( tmp_list_element_1, 1, tmp_tuple_element_13 );
tmp_tuple_element_13 = const_int_pos_1;
Py_INCREF( tmp_tuple_element_13 );
PyTuple_SET_ITEM( tmp_list_element_1, 2, tmp_tuple_element_13 );
tmp_dictset_value = PyList_New( 1 );
PyList_SET_ITEM( tmp_dictset_value, 0, tmp_list_element_1 );
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain_default_socket_options, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 102;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
tmp_dictset_value = Py_False;
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain_is_verified, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 105;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
tmp_dictset_value = MAKE_FUNCTION_urllib3$connection$$$function_1___init__( );
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain___init__, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 107;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
nuitka_bool tmp_condition_result_26;
PyObject *tmp_called_name_8;
PyObject *tmp_args_element_name_1;
PyObject *tmp_called_name_9;
PyObject *tmp_args_element_name_2;
tmp_res = MAPPING_HAS_ITEM( locals_urllib3$connection_71, const_str_plain_property );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 128;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_condition_result_26 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_26 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_9;
}
else
{
goto condexpr_false_9;
}
condexpr_true_9:;
tmp_called_name_8 = PyObject_GetItem( locals_urllib3$connection_71, const_str_plain_property );
if ( tmp_called_name_8 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "property" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 128;
type_description_2 = "o";
goto frame_exception_exit_2;
}
if ( tmp_called_name_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 128;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_args_element_name_1 = MAKE_FUNCTION_urllib3$connection$$$function_2_host( );
frame_fc8c12040a85b20506c0975151b2b704_2->m_frame.f_lineno = 128;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_8, call_args );
}
Py_DECREF( tmp_called_name_8 );
Py_DECREF( tmp_args_element_name_1 );
if ( tmp_dictset_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 128;
type_description_2 = "o";
goto frame_exception_exit_2;
}
goto condexpr_end_9;
condexpr_false_9:;
tmp_called_name_9 = (PyObject *)&PyProperty_Type;
tmp_args_element_name_2 = MAKE_FUNCTION_urllib3$connection$$$function_2_host( );
frame_fc8c12040a85b20506c0975151b2b704_2->m_frame.f_lineno = 128;
{
PyObject *call_args[] = { tmp_args_element_name_2 };
tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_9, call_args );
}
Py_DECREF( tmp_args_element_name_2 );
if ( tmp_dictset_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 128;
type_description_2 = "o";
goto frame_exception_exit_2;
}
condexpr_end_9:;
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain_host, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 128;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
PyObject *tmp_called_instance_3;
PyObject *tmp_args_element_name_3;
tmp_called_instance_3 = PyObject_GetItem( locals_urllib3$connection_71, const_str_plain_host );
if ( tmp_called_instance_3 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "host" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 147;
type_description_2 = "o";
goto frame_exception_exit_2;
}
if ( tmp_called_instance_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 147;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_args_element_name_3 = MAKE_FUNCTION_urllib3$connection$$$function_3_host( );
frame_fc8c12040a85b20506c0975151b2b704_2->m_frame.f_lineno = 147;
{
PyObject *call_args[] = { tmp_args_element_name_3 };
tmp_dictset_value = CALL_METHOD_WITH_ARGS1( tmp_called_instance_3, const_str_plain_setter, call_args );
}
Py_DECREF( tmp_called_instance_3 );
Py_DECREF( tmp_args_element_name_3 );
if ( tmp_dictset_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 147;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain_host, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 147;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
tmp_dictset_value = MAKE_FUNCTION_urllib3$connection$$$function_4__new_conn( );
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain__new_conn, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 157;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
tmp_dictset_value = MAKE_FUNCTION_urllib3$connection$$$function_5__prepare_conn( );
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain__prepare_conn, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 184;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
tmp_dictset_value = MAKE_FUNCTION_urllib3$connection$$$function_6_connect( );
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain_connect, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 195;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
PyObject *tmp_defaults_1;
tmp_defaults_1 = const_tuple_none_none_tuple;
Py_INCREF( tmp_defaults_1 );
tmp_dictset_value = MAKE_FUNCTION_urllib3$connection$$$function_7_request_chunked( tmp_defaults_1 );
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain_request_chunked, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 199;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_fc8c12040a85b20506c0975151b2b704_2 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_2:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_fc8c12040a85b20506c0975151b2b704_2 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_fc8c12040a85b20506c0975151b2b704_2, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_fc8c12040a85b20506c0975151b2b704_2->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_fc8c12040a85b20506c0975151b2b704_2, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_fc8c12040a85b20506c0975151b2b704_2,
type_description_2,
outline_3_var___class__
);
// Release cached frame.
if ( frame_fc8c12040a85b20506c0975151b2b704_2 == cache_frame_fc8c12040a85b20506c0975151b2b704_2 )
{
Py_DECREF( frame_fc8c12040a85b20506c0975151b2b704_2 );
}
cache_frame_fc8c12040a85b20506c0975151b2b704_2 = NULL;
assertFrameObject( frame_fc8c12040a85b20506c0975151b2b704_2 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto nested_frame_exit_1;
frame_no_exception_1:;
goto skip_nested_handling_1;
nested_frame_exit_1:;
goto try_except_handler_20;
skip_nested_handling_1:;
{
nuitka_bool tmp_condition_result_27;
PyObject *tmp_compexpr_left_6;
PyObject *tmp_compexpr_right_6;
CHECK_OBJECT( tmp_class_creation_4__bases );
tmp_compexpr_left_6 = tmp_class_creation_4__bases;
CHECK_OBJECT( tmp_class_creation_4__bases_orig );
tmp_compexpr_right_6 = tmp_class_creation_4__bases_orig;
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_6, tmp_compexpr_right_6 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_20;
}
tmp_condition_result_27 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_27 == NUITKA_BOOL_TRUE )
{
goto branch_yes_18;
}
else
{
goto branch_no_18;
}
branch_yes_18:;
{
CHECK_OBJECT( tmp_class_creation_4__bases_orig );
tmp_dictset_value = tmp_class_creation_4__bases_orig;
tmp_res = PyObject_SetItem( locals_urllib3$connection_71, const_str_plain___orig_bases__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_20;
}
}
branch_no_18:;
}
{
PyObject *tmp_assign_source_68;
PyObject *tmp_called_name_10;
PyObject *tmp_args_name_8;
PyObject *tmp_tuple_element_14;
PyObject *tmp_kw_name_8;
CHECK_OBJECT( tmp_class_creation_4__metaclass );
tmp_called_name_10 = tmp_class_creation_4__metaclass;
tmp_tuple_element_14 = const_str_plain_HTTPConnection;
tmp_args_name_8 = PyTuple_New( 3 );
Py_INCREF( tmp_tuple_element_14 );
PyTuple_SET_ITEM( tmp_args_name_8, 0, tmp_tuple_element_14 );
CHECK_OBJECT( tmp_class_creation_4__bases );
tmp_tuple_element_14 = tmp_class_creation_4__bases;
Py_INCREF( tmp_tuple_element_14 );
PyTuple_SET_ITEM( tmp_args_name_8, 1, tmp_tuple_element_14 );
tmp_tuple_element_14 = locals_urllib3$connection_71;
Py_INCREF( tmp_tuple_element_14 );
PyTuple_SET_ITEM( tmp_args_name_8, 2, tmp_tuple_element_14 );
CHECK_OBJECT( tmp_class_creation_4__class_decl_dict );
tmp_kw_name_8 = tmp_class_creation_4__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 71;
tmp_assign_source_68 = CALL_FUNCTION( tmp_called_name_10, tmp_args_name_8, tmp_kw_name_8 );
Py_DECREF( tmp_args_name_8 );
if ( tmp_assign_source_68 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 71;
goto try_except_handler_20;
}
assert( outline_3_var___class__ == NULL );
outline_3_var___class__ = tmp_assign_source_68;
}
{
CHECK_OBJECT( outline_3_var___class__ );
tmp_assign_source_67 = outline_3_var___class__;
Py_INCREF( tmp_assign_source_67 );
goto try_return_handler_20;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_20:;
{
Py_DECREF( locals_urllib3$connection_71 );
locals_urllib3$connection_71 = NULL;
}
{
goto try_return_handler_19;
}
// Exception handler code:
try_except_handler_20:;
exception_keeper_type_18 = exception_type;
exception_keeper_value_18 = exception_value;
exception_keeper_tb_18 = exception_tb;
exception_keeper_lineno_18 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_DECREF( locals_urllib3$connection_71 );
locals_urllib3$connection_71 = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_18;
exception_value = exception_keeper_value_18;
exception_tb = exception_keeper_tb_18;
exception_lineno = exception_keeper_lineno_18;
goto try_except_handler_19;
}
// End of try:
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_19:;
{
CHECK_OBJECT( (PyObject *)outline_3_var___class__ );
Py_DECREF( outline_3_var___class__ );
outline_3_var___class__ = NULL;
}
{
goto outline_result_4;
}
// Exception handler code:
try_except_handler_19:;
exception_keeper_type_19 = exception_type;
exception_keeper_value_19 = exception_value;
exception_keeper_tb_19 = exception_tb;
exception_keeper_lineno_19 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Re-raise.
exception_type = exception_keeper_type_19;
exception_value = exception_keeper_value_19;
exception_tb = exception_keeper_tb_19;
exception_lineno = exception_keeper_lineno_19;
goto outline_exception_4;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
outline_exception_4:;
exception_lineno = 71;
goto try_except_handler_18;
outline_result_4:;
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPConnection, tmp_assign_source_67 );
}
goto try_end_12;
// Exception handler code:
try_except_handler_18:;
exception_keeper_type_20 = exception_type;
exception_keeper_value_20 = exception_value;
exception_keeper_tb_20 = exception_tb;
exception_keeper_lineno_20 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_class_creation_4__bases );
tmp_class_creation_4__bases = NULL;
}
{
Py_XDECREF( tmp_class_creation_4__class_decl_dict );
tmp_class_creation_4__class_decl_dict = NULL;
}
{
Py_XDECREF( tmp_class_creation_4__metaclass );
tmp_class_creation_4__metaclass = NULL;
}
{
Py_XDECREF( tmp_class_creation_4__prepared );
tmp_class_creation_4__prepared = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_20;
exception_value = exception_keeper_value_20;
exception_tb = exception_keeper_tb_20;
exception_lineno = exception_keeper_lineno_20;
goto frame_exception_exit_1;
}
// End of try:
try_end_12:;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_4__bases );
Py_DECREF( tmp_class_creation_4__bases );
tmp_class_creation_4__bases = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_4__class_decl_dict );
Py_DECREF( tmp_class_creation_4__class_decl_dict );
tmp_class_creation_4__class_decl_dict = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_4__metaclass );
Py_DECREF( tmp_class_creation_4__metaclass );
tmp_class_creation_4__metaclass = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_4__prepared );
Py_DECREF( tmp_class_creation_4__prepared );
tmp_class_creation_4__prepared = NULL;
}
{
// Tried code:
{
PyObject *tmp_assign_source_69;
PyObject *tmp_tuple_element_15;
PyObject *tmp_mvar_value_9;
tmp_mvar_value_9 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPConnection );
if (unlikely( tmp_mvar_value_9 == NULL ))
{
tmp_mvar_value_9 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_HTTPConnection );
}
if ( tmp_mvar_value_9 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "HTTPConnection" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 238;
goto try_except_handler_21;
}
tmp_tuple_element_15 = tmp_mvar_value_9;
tmp_assign_source_69 = PyTuple_New( 1 );
Py_INCREF( tmp_tuple_element_15 );
PyTuple_SET_ITEM( tmp_assign_source_69, 0, tmp_tuple_element_15 );
assert( tmp_class_creation_5__bases_orig == NULL );
tmp_class_creation_5__bases_orig = tmp_assign_source_69;
}
{
PyObject *tmp_assign_source_70;
PyObject *tmp_dircall_arg1_5;
CHECK_OBJECT( tmp_class_creation_5__bases_orig );
tmp_dircall_arg1_5 = tmp_class_creation_5__bases_orig;
Py_INCREF( tmp_dircall_arg1_5 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_5};
tmp_assign_source_70 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
}
if ( tmp_assign_source_70 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
assert( tmp_class_creation_5__bases == NULL );
tmp_class_creation_5__bases = tmp_assign_source_70;
}
{
PyObject *tmp_assign_source_71;
tmp_assign_source_71 = PyDict_New();
assert( tmp_class_creation_5__class_decl_dict == NULL );
tmp_class_creation_5__class_decl_dict = tmp_assign_source_71;
}
{
PyObject *tmp_assign_source_72;
PyObject *tmp_metaclass_name_5;
nuitka_bool tmp_condition_result_28;
PyObject *tmp_key_name_13;
PyObject *tmp_dict_name_13;
PyObject *tmp_dict_name_14;
PyObject *tmp_key_name_14;
nuitka_bool tmp_condition_result_29;
int tmp_truth_name_5;
PyObject *tmp_type_arg_9;
PyObject *tmp_subscribed_name_6;
PyObject *tmp_subscript_name_6;
PyObject *tmp_bases_name_5;
tmp_key_name_13 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_5__class_decl_dict );
tmp_dict_name_13 = tmp_class_creation_5__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_13, tmp_key_name_13 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
tmp_condition_result_28 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_28 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_10;
}
else
{
goto condexpr_false_10;
}
condexpr_true_10:;
CHECK_OBJECT( tmp_class_creation_5__class_decl_dict );
tmp_dict_name_14 = tmp_class_creation_5__class_decl_dict;
tmp_key_name_14 = const_str_plain_metaclass;
tmp_metaclass_name_5 = DICT_GET_ITEM( tmp_dict_name_14, tmp_key_name_14 );
if ( tmp_metaclass_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
goto condexpr_end_10;
condexpr_false_10:;
CHECK_OBJECT( tmp_class_creation_5__bases );
tmp_truth_name_5 = CHECK_IF_TRUE( tmp_class_creation_5__bases );
if ( tmp_truth_name_5 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
tmp_condition_result_29 = tmp_truth_name_5 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_29 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_11;
}
else
{
goto condexpr_false_11;
}
condexpr_true_11:;
CHECK_OBJECT( tmp_class_creation_5__bases );
tmp_subscribed_name_6 = tmp_class_creation_5__bases;
tmp_subscript_name_6 = const_int_0;
tmp_type_arg_9 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_6, tmp_subscript_name_6, 0 );
if ( tmp_type_arg_9 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
tmp_metaclass_name_5 = BUILTIN_TYPE1( tmp_type_arg_9 );
Py_DECREF( tmp_type_arg_9 );
if ( tmp_metaclass_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
goto condexpr_end_11;
condexpr_false_11:;
tmp_metaclass_name_5 = (PyObject *)&PyType_Type;
Py_INCREF( tmp_metaclass_name_5 );
condexpr_end_11:;
condexpr_end_10:;
CHECK_OBJECT( tmp_class_creation_5__bases );
tmp_bases_name_5 = tmp_class_creation_5__bases;
tmp_assign_source_72 = SELECT_METACLASS( tmp_metaclass_name_5, tmp_bases_name_5 );
Py_DECREF( tmp_metaclass_name_5 );
if ( tmp_assign_source_72 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
assert( tmp_class_creation_5__metaclass == NULL );
tmp_class_creation_5__metaclass = tmp_assign_source_72;
}
{
nuitka_bool tmp_condition_result_30;
PyObject *tmp_key_name_15;
PyObject *tmp_dict_name_15;
tmp_key_name_15 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_5__class_decl_dict );
tmp_dict_name_15 = tmp_class_creation_5__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_15, tmp_key_name_15 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
tmp_condition_result_30 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_30 == NUITKA_BOOL_TRUE )
{
goto branch_yes_19;
}
else
{
goto branch_no_19;
}
branch_yes_19:;
{
CHECK_OBJECT( tmp_class_creation_5__class_decl_dict );
tmp_dictdel_dict = tmp_class_creation_5__class_decl_dict;
tmp_dictdel_key = const_str_plain_metaclass;
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
}
branch_no_19:;
}
{
nuitka_bool tmp_condition_result_31;
PyObject *tmp_source_name_20;
CHECK_OBJECT( tmp_class_creation_5__metaclass );
tmp_source_name_20 = tmp_class_creation_5__metaclass;
tmp_res = PyObject_HasAttr( tmp_source_name_20, const_str_plain___prepare__ );
tmp_condition_result_31 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_31 == NUITKA_BOOL_TRUE )
{
goto branch_yes_20;
}
else
{
goto branch_no_20;
}
branch_yes_20:;
{
PyObject *tmp_assign_source_73;
PyObject *tmp_called_name_11;
PyObject *tmp_source_name_21;
PyObject *tmp_args_name_9;
PyObject *tmp_tuple_element_16;
PyObject *tmp_kw_name_9;
CHECK_OBJECT( tmp_class_creation_5__metaclass );
tmp_source_name_21 = tmp_class_creation_5__metaclass;
tmp_called_name_11 = LOOKUP_ATTRIBUTE( tmp_source_name_21, const_str_plain___prepare__ );
if ( tmp_called_name_11 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
tmp_tuple_element_16 = const_str_plain_HTTPSConnection;
tmp_args_name_9 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_16 );
PyTuple_SET_ITEM( tmp_args_name_9, 0, tmp_tuple_element_16 );
CHECK_OBJECT( tmp_class_creation_5__bases );
tmp_tuple_element_16 = tmp_class_creation_5__bases;
Py_INCREF( tmp_tuple_element_16 );
PyTuple_SET_ITEM( tmp_args_name_9, 1, tmp_tuple_element_16 );
CHECK_OBJECT( tmp_class_creation_5__class_decl_dict );
tmp_kw_name_9 = tmp_class_creation_5__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 238;
tmp_assign_source_73 = CALL_FUNCTION( tmp_called_name_11, tmp_args_name_9, tmp_kw_name_9 );
Py_DECREF( tmp_called_name_11 );
Py_DECREF( tmp_args_name_9 );
if ( tmp_assign_source_73 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
assert( tmp_class_creation_5__prepared == NULL );
tmp_class_creation_5__prepared = tmp_assign_source_73;
}
{
nuitka_bool tmp_condition_result_32;
PyObject *tmp_operand_name_5;
PyObject *tmp_source_name_22;
CHECK_OBJECT( tmp_class_creation_5__prepared );
tmp_source_name_22 = tmp_class_creation_5__prepared;
tmp_res = PyObject_HasAttr( tmp_source_name_22, const_str_plain___getitem__ );
tmp_operand_name_5 = ( tmp_res != 0 ) ? Py_True : Py_False;
tmp_res = CHECK_IF_TRUE( tmp_operand_name_5 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
tmp_condition_result_32 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_32 == NUITKA_BOOL_TRUE )
{
goto branch_yes_21;
}
else
{
goto branch_no_21;
}
branch_yes_21:;
{
PyObject *tmp_raise_type_5;
PyObject *tmp_raise_value_5;
PyObject *tmp_left_name_5;
PyObject *tmp_right_name_5;
PyObject *tmp_tuple_element_17;
PyObject *tmp_getattr_target_5;
PyObject *tmp_getattr_attr_5;
PyObject *tmp_getattr_default_5;
PyObject *tmp_source_name_23;
PyObject *tmp_type_arg_10;
tmp_raise_type_5 = PyExc_TypeError;
tmp_left_name_5 = const_str_digest_75fd71b1edada749c2ef7ac810062295;
CHECK_OBJECT( tmp_class_creation_5__metaclass );
tmp_getattr_target_5 = tmp_class_creation_5__metaclass;
tmp_getattr_attr_5 = const_str_plain___name__;
tmp_getattr_default_5 = const_str_angle_metaclass;
tmp_tuple_element_17 = BUILTIN_GETATTR( tmp_getattr_target_5, tmp_getattr_attr_5, tmp_getattr_default_5 );
if ( tmp_tuple_element_17 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
tmp_right_name_5 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_right_name_5, 0, tmp_tuple_element_17 );
CHECK_OBJECT( tmp_class_creation_5__prepared );
tmp_type_arg_10 = tmp_class_creation_5__prepared;
tmp_source_name_23 = BUILTIN_TYPE1( tmp_type_arg_10 );
assert( !(tmp_source_name_23 == NULL) );
tmp_tuple_element_17 = LOOKUP_ATTRIBUTE( tmp_source_name_23, const_str_plain___name__ );
Py_DECREF( tmp_source_name_23 );
if ( tmp_tuple_element_17 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_right_name_5 );
exception_lineno = 238;
goto try_except_handler_21;
}
PyTuple_SET_ITEM( tmp_right_name_5, 1, tmp_tuple_element_17 );
tmp_raise_value_5 = BINARY_OPERATION_REMAINDER( tmp_left_name_5, tmp_right_name_5 );
Py_DECREF( tmp_right_name_5 );
if ( tmp_raise_value_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_21;
}
exception_type = tmp_raise_type_5;
Py_INCREF( tmp_raise_type_5 );
exception_value = tmp_raise_value_5;
exception_lineno = 238;
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
goto try_except_handler_21;
}
branch_no_21:;
}
goto branch_end_20;
branch_no_20:;
{
PyObject *tmp_assign_source_74;
tmp_assign_source_74 = PyDict_New();
assert( tmp_class_creation_5__prepared == NULL );
tmp_class_creation_5__prepared = tmp_assign_source_74;
}
branch_end_20:;
}
{
PyObject *tmp_assign_source_75;
{
PyObject *tmp_set_locals_5;
CHECK_OBJECT( tmp_class_creation_5__prepared );
tmp_set_locals_5 = tmp_class_creation_5__prepared;
locals_urllib3$connection_238 = tmp_set_locals_5;
Py_INCREF( tmp_set_locals_5 );
}
{
// Tried code:
{
// Tried code:
{
tmp_dictset_value = const_str_digest_003800fb824e3437bbbf235acf31301c;
tmp_res = PyObject_SetItem( locals_urllib3$connection_238, const_str_plain___module__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_23;
}
}
{
tmp_dictset_value = const_str_plain_HTTPSConnection;
tmp_res = PyObject_SetItem( locals_urllib3$connection_238, const_str_plain___qualname__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_23;
}
}
MAKE_OR_REUSE_FRAME( cache_frame_08c67e79a2abab08fd6ee625591c87ea_3, codeobj_08c67e79a2abab08fd6ee625591c87ea, module_urllib3$connection, sizeof(void *) );
frame_08c67e79a2abab08fd6ee625591c87ea_3 = cache_frame_08c67e79a2abab08fd6ee625591c87ea_3;
// Push the new frame as the currently active one.
pushFrameStack( frame_08c67e79a2abab08fd6ee625591c87ea_3 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_08c67e79a2abab08fd6ee625591c87ea_3 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_subscribed_name_7;
PyObject *tmp_mvar_value_10;
PyObject *tmp_subscript_name_7;
tmp_subscribed_name_7 = PyObject_GetItem( locals_urllib3$connection_238, const_str_plain_port_by_scheme );
if ( tmp_subscribed_name_7 == NULL )
{
if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() )
{
tmp_mvar_value_10 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_port_by_scheme );
if (unlikely( tmp_mvar_value_10 == NULL ))
{
tmp_mvar_value_10 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_port_by_scheme );
}
if ( tmp_mvar_value_10 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "port_by_scheme" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 239;
type_description_2 = "o";
goto frame_exception_exit_3;
}
tmp_subscribed_name_7 = tmp_mvar_value_10;
Py_INCREF( tmp_subscribed_name_7 );
}
}
tmp_subscript_name_7 = const_str_plain_https;
tmp_dictset_value = LOOKUP_SUBSCRIPT( tmp_subscribed_name_7, tmp_subscript_name_7 );
Py_DECREF( tmp_subscribed_name_7 );
if ( tmp_dictset_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 239;
type_description_2 = "o";
goto frame_exception_exit_3;
}
tmp_res = PyObject_SetItem( locals_urllib3$connection_238, const_str_plain_default_port, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 239;
type_description_2 = "o";
goto frame_exception_exit_3;
}
}
{
tmp_dictset_value = Py_None;
tmp_res = PyObject_SetItem( locals_urllib3$connection_238, const_str_plain_ssl_version, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 241;
type_description_2 = "o";
goto frame_exception_exit_3;
}
}
{
PyObject *tmp_defaults_2;
PyObject *tmp_tuple_element_18;
PyObject *tmp_source_name_24;
PyObject *tmp_mvar_value_11;
tmp_tuple_element_18 = Py_None;
tmp_defaults_2 = PyTuple_New( 6 );
Py_INCREF( tmp_tuple_element_18 );
PyTuple_SET_ITEM( tmp_defaults_2, 0, tmp_tuple_element_18 );
tmp_tuple_element_18 = Py_None;
Py_INCREF( tmp_tuple_element_18 );
PyTuple_SET_ITEM( tmp_defaults_2, 1, tmp_tuple_element_18 );
tmp_tuple_element_18 = Py_None;
Py_INCREF( tmp_tuple_element_18 );
PyTuple_SET_ITEM( tmp_defaults_2, 2, tmp_tuple_element_18 );
tmp_tuple_element_18 = Py_None;
Py_INCREF( tmp_tuple_element_18 );
PyTuple_SET_ITEM( tmp_defaults_2, 3, tmp_tuple_element_18 );
tmp_source_name_24 = PyObject_GetItem( locals_urllib3$connection_238, const_str_plain_socket );
if ( tmp_source_name_24 == NULL )
{
if ( CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() )
{
tmp_mvar_value_11 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_socket );
if (unlikely( tmp_mvar_value_11 == NULL ))
{
tmp_mvar_value_11 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_socket );
}
if ( tmp_mvar_value_11 == NULL )
{
Py_DECREF( tmp_defaults_2 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "socket" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 244;
type_description_2 = "o";
goto frame_exception_exit_3;
}
tmp_source_name_24 = tmp_mvar_value_11;
Py_INCREF( tmp_source_name_24 );
}
}
tmp_tuple_element_18 = LOOKUP_ATTRIBUTE( tmp_source_name_24, const_str_plain__GLOBAL_DEFAULT_TIMEOUT );
Py_DECREF( tmp_source_name_24 );
if ( tmp_tuple_element_18 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_defaults_2 );
exception_lineno = 244;
type_description_2 = "o";
goto frame_exception_exit_3;
}
PyTuple_SET_ITEM( tmp_defaults_2, 4, tmp_tuple_element_18 );
tmp_tuple_element_18 = Py_None;
Py_INCREF( tmp_tuple_element_18 );
PyTuple_SET_ITEM( tmp_defaults_2, 5, tmp_tuple_element_18 );
tmp_dictset_value = MAKE_FUNCTION_urllib3$connection$$$function_8___init__( tmp_defaults_2 );
tmp_res = PyObject_SetItem( locals_urllib3$connection_238, const_str_plain___init__, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 243;
type_description_2 = "o";
goto frame_exception_exit_3;
}
}
{
tmp_dictset_value = MAKE_FUNCTION_urllib3$connection$$$function_9_connect( );
tmp_res = PyObject_SetItem( locals_urllib3$connection_238, const_str_plain_connect, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 258;
type_description_2 = "o";
goto frame_exception_exit_3;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_08c67e79a2abab08fd6ee625591c87ea_3 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_2;
frame_exception_exit_3:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_08c67e79a2abab08fd6ee625591c87ea_3 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_08c67e79a2abab08fd6ee625591c87ea_3, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_08c67e79a2abab08fd6ee625591c87ea_3->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_08c67e79a2abab08fd6ee625591c87ea_3, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_08c67e79a2abab08fd6ee625591c87ea_3,
type_description_2,
outline_4_var___class__
);
// Release cached frame.
if ( frame_08c67e79a2abab08fd6ee625591c87ea_3 == cache_frame_08c67e79a2abab08fd6ee625591c87ea_3 )
{
Py_DECREF( frame_08c67e79a2abab08fd6ee625591c87ea_3 );
}
cache_frame_08c67e79a2abab08fd6ee625591c87ea_3 = NULL;
assertFrameObject( frame_08c67e79a2abab08fd6ee625591c87ea_3 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto nested_frame_exit_2;
frame_no_exception_2:;
goto skip_nested_handling_2;
nested_frame_exit_2:;
goto try_except_handler_23;
skip_nested_handling_2:;
{
nuitka_bool tmp_condition_result_33;
PyObject *tmp_compexpr_left_7;
PyObject *tmp_compexpr_right_7;
CHECK_OBJECT( tmp_class_creation_5__bases );
tmp_compexpr_left_7 = tmp_class_creation_5__bases;
CHECK_OBJECT( tmp_class_creation_5__bases_orig );
tmp_compexpr_right_7 = tmp_class_creation_5__bases_orig;
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_7, tmp_compexpr_right_7 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_23;
}
tmp_condition_result_33 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_33 == NUITKA_BOOL_TRUE )
{
goto branch_yes_22;
}
else
{
goto branch_no_22;
}
branch_yes_22:;
{
CHECK_OBJECT( tmp_class_creation_5__bases_orig );
tmp_dictset_value = tmp_class_creation_5__bases_orig;
tmp_res = PyObject_SetItem( locals_urllib3$connection_238, const_str_plain___orig_bases__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_23;
}
}
branch_no_22:;
}
{
PyObject *tmp_assign_source_76;
PyObject *tmp_called_name_12;
PyObject *tmp_args_name_10;
PyObject *tmp_tuple_element_19;
PyObject *tmp_kw_name_10;
CHECK_OBJECT( tmp_class_creation_5__metaclass );
tmp_called_name_12 = tmp_class_creation_5__metaclass;
tmp_tuple_element_19 = const_str_plain_HTTPSConnection;
tmp_args_name_10 = PyTuple_New( 3 );
Py_INCREF( tmp_tuple_element_19 );
PyTuple_SET_ITEM( tmp_args_name_10, 0, tmp_tuple_element_19 );
CHECK_OBJECT( tmp_class_creation_5__bases );
tmp_tuple_element_19 = tmp_class_creation_5__bases;
Py_INCREF( tmp_tuple_element_19 );
PyTuple_SET_ITEM( tmp_args_name_10, 1, tmp_tuple_element_19 );
tmp_tuple_element_19 = locals_urllib3$connection_238;
Py_INCREF( tmp_tuple_element_19 );
PyTuple_SET_ITEM( tmp_args_name_10, 2, tmp_tuple_element_19 );
CHECK_OBJECT( tmp_class_creation_5__class_decl_dict );
tmp_kw_name_10 = tmp_class_creation_5__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 238;
tmp_assign_source_76 = CALL_FUNCTION( tmp_called_name_12, tmp_args_name_10, tmp_kw_name_10 );
Py_DECREF( tmp_args_name_10 );
if ( tmp_assign_source_76 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 238;
goto try_except_handler_23;
}
assert( outline_4_var___class__ == NULL );
outline_4_var___class__ = tmp_assign_source_76;
}
{
CHECK_OBJECT( outline_4_var___class__ );
tmp_assign_source_75 = outline_4_var___class__;
Py_INCREF( tmp_assign_source_75 );
goto try_return_handler_23;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_23:;
{
Py_DECREF( locals_urllib3$connection_238 );
locals_urllib3$connection_238 = NULL;
}
{
goto try_return_handler_22;
}
// Exception handler code:
try_except_handler_23:;
exception_keeper_type_21 = exception_type;
exception_keeper_value_21 = exception_value;
exception_keeper_tb_21 = exception_tb;
exception_keeper_lineno_21 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_DECREF( locals_urllib3$connection_238 );
locals_urllib3$connection_238 = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_21;
exception_value = exception_keeper_value_21;
exception_tb = exception_keeper_tb_21;
exception_lineno = exception_keeper_lineno_21;
goto try_except_handler_22;
}
// End of try:
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_22:;
{
CHECK_OBJECT( (PyObject *)outline_4_var___class__ );
Py_DECREF( outline_4_var___class__ );
outline_4_var___class__ = NULL;
}
{
goto outline_result_5;
}
// Exception handler code:
try_except_handler_22:;
exception_keeper_type_22 = exception_type;
exception_keeper_value_22 = exception_value;
exception_keeper_tb_22 = exception_tb;
exception_keeper_lineno_22 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Re-raise.
exception_type = exception_keeper_type_22;
exception_value = exception_keeper_value_22;
exception_tb = exception_keeper_tb_22;
exception_lineno = exception_keeper_lineno_22;
goto outline_exception_5;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
outline_exception_5:;
exception_lineno = 238;
goto try_except_handler_21;
outline_result_5:;
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPSConnection, tmp_assign_source_75 );
}
goto try_end_13;
// Exception handler code:
try_except_handler_21:;
exception_keeper_type_23 = exception_type;
exception_keeper_value_23 = exception_value;
exception_keeper_tb_23 = exception_tb;
exception_keeper_lineno_23 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_class_creation_5__bases );
tmp_class_creation_5__bases = NULL;
}
{
Py_XDECREF( tmp_class_creation_5__class_decl_dict );
tmp_class_creation_5__class_decl_dict = NULL;
}
{
Py_XDECREF( tmp_class_creation_5__metaclass );
tmp_class_creation_5__metaclass = NULL;
}
{
Py_XDECREF( tmp_class_creation_5__prepared );
tmp_class_creation_5__prepared = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_23;
exception_value = exception_keeper_value_23;
exception_tb = exception_keeper_tb_23;
exception_lineno = exception_keeper_lineno_23;
goto frame_exception_exit_1;
}
// End of try:
try_end_13:;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_5__bases );
Py_DECREF( tmp_class_creation_5__bases );
tmp_class_creation_5__bases = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_5__class_decl_dict );
Py_DECREF( tmp_class_creation_5__class_decl_dict );
tmp_class_creation_5__class_decl_dict = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_5__metaclass );
Py_DECREF( tmp_class_creation_5__metaclass );
tmp_class_creation_5__metaclass = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_5__prepared );
Py_DECREF( tmp_class_creation_5__prepared );
tmp_class_creation_5__prepared = NULL;
}
{
// Tried code:
{
PyObject *tmp_assign_source_77;
PyObject *tmp_tuple_element_20;
PyObject *tmp_mvar_value_12;
tmp_mvar_value_12 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPSConnection );
if (unlikely( tmp_mvar_value_12 == NULL ))
{
tmp_mvar_value_12 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_HTTPSConnection );
}
if ( tmp_mvar_value_12 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "HTTPSConnection" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 276;
goto try_except_handler_24;
}
tmp_tuple_element_20 = tmp_mvar_value_12;
tmp_assign_source_77 = PyTuple_New( 1 );
Py_INCREF( tmp_tuple_element_20 );
PyTuple_SET_ITEM( tmp_assign_source_77, 0, tmp_tuple_element_20 );
assert( tmp_class_creation_6__bases_orig == NULL );
tmp_class_creation_6__bases_orig = tmp_assign_source_77;
}
{
PyObject *tmp_assign_source_78;
PyObject *tmp_dircall_arg1_6;
CHECK_OBJECT( tmp_class_creation_6__bases_orig );
tmp_dircall_arg1_6 = tmp_class_creation_6__bases_orig;
Py_INCREF( tmp_dircall_arg1_6 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_6};
tmp_assign_source_78 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
}
if ( tmp_assign_source_78 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
assert( tmp_class_creation_6__bases == NULL );
tmp_class_creation_6__bases = tmp_assign_source_78;
}
{
PyObject *tmp_assign_source_79;
tmp_assign_source_79 = PyDict_New();
assert( tmp_class_creation_6__class_decl_dict == NULL );
tmp_class_creation_6__class_decl_dict = tmp_assign_source_79;
}
{
PyObject *tmp_assign_source_80;
PyObject *tmp_metaclass_name_6;
nuitka_bool tmp_condition_result_34;
PyObject *tmp_key_name_16;
PyObject *tmp_dict_name_16;
PyObject *tmp_dict_name_17;
PyObject *tmp_key_name_17;
nuitka_bool tmp_condition_result_35;
int tmp_truth_name_6;
PyObject *tmp_type_arg_11;
PyObject *tmp_subscribed_name_8;
PyObject *tmp_subscript_name_8;
PyObject *tmp_bases_name_6;
tmp_key_name_16 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_6__class_decl_dict );
tmp_dict_name_16 = tmp_class_creation_6__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_16, tmp_key_name_16 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
tmp_condition_result_34 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_34 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_12;
}
else
{
goto condexpr_false_12;
}
condexpr_true_12:;
CHECK_OBJECT( tmp_class_creation_6__class_decl_dict );
tmp_dict_name_17 = tmp_class_creation_6__class_decl_dict;
tmp_key_name_17 = const_str_plain_metaclass;
tmp_metaclass_name_6 = DICT_GET_ITEM( tmp_dict_name_17, tmp_key_name_17 );
if ( tmp_metaclass_name_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
goto condexpr_end_12;
condexpr_false_12:;
CHECK_OBJECT( tmp_class_creation_6__bases );
tmp_truth_name_6 = CHECK_IF_TRUE( tmp_class_creation_6__bases );
if ( tmp_truth_name_6 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
tmp_condition_result_35 = tmp_truth_name_6 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_35 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_13;
}
else
{
goto condexpr_false_13;
}
condexpr_true_13:;
CHECK_OBJECT( tmp_class_creation_6__bases );
tmp_subscribed_name_8 = tmp_class_creation_6__bases;
tmp_subscript_name_8 = const_int_0;
tmp_type_arg_11 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_8, tmp_subscript_name_8, 0 );
if ( tmp_type_arg_11 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
tmp_metaclass_name_6 = BUILTIN_TYPE1( tmp_type_arg_11 );
Py_DECREF( tmp_type_arg_11 );
if ( tmp_metaclass_name_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
goto condexpr_end_13;
condexpr_false_13:;
tmp_metaclass_name_6 = (PyObject *)&PyType_Type;
Py_INCREF( tmp_metaclass_name_6 );
condexpr_end_13:;
condexpr_end_12:;
CHECK_OBJECT( tmp_class_creation_6__bases );
tmp_bases_name_6 = tmp_class_creation_6__bases;
tmp_assign_source_80 = SELECT_METACLASS( tmp_metaclass_name_6, tmp_bases_name_6 );
Py_DECREF( tmp_metaclass_name_6 );
if ( tmp_assign_source_80 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
assert( tmp_class_creation_6__metaclass == NULL );
tmp_class_creation_6__metaclass = tmp_assign_source_80;
}
{
nuitka_bool tmp_condition_result_36;
PyObject *tmp_key_name_18;
PyObject *tmp_dict_name_18;
tmp_key_name_18 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_6__class_decl_dict );
tmp_dict_name_18 = tmp_class_creation_6__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_18, tmp_key_name_18 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
tmp_condition_result_36 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_36 == NUITKA_BOOL_TRUE )
{
goto branch_yes_23;
}
else
{
goto branch_no_23;
}
branch_yes_23:;
{
CHECK_OBJECT( tmp_class_creation_6__class_decl_dict );
tmp_dictdel_dict = tmp_class_creation_6__class_decl_dict;
tmp_dictdel_key = const_str_plain_metaclass;
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
}
branch_no_23:;
}
{
nuitka_bool tmp_condition_result_37;
PyObject *tmp_source_name_25;
CHECK_OBJECT( tmp_class_creation_6__metaclass );
tmp_source_name_25 = tmp_class_creation_6__metaclass;
tmp_res = PyObject_HasAttr( tmp_source_name_25, const_str_plain___prepare__ );
tmp_condition_result_37 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_37 == NUITKA_BOOL_TRUE )
{
goto branch_yes_24;
}
else
{
goto branch_no_24;
}
branch_yes_24:;
{
PyObject *tmp_assign_source_81;
PyObject *tmp_called_name_13;
PyObject *tmp_source_name_26;
PyObject *tmp_args_name_11;
PyObject *tmp_tuple_element_21;
PyObject *tmp_kw_name_11;
CHECK_OBJECT( tmp_class_creation_6__metaclass );
tmp_source_name_26 = tmp_class_creation_6__metaclass;
tmp_called_name_13 = LOOKUP_ATTRIBUTE( tmp_source_name_26, const_str_plain___prepare__ );
if ( tmp_called_name_13 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
tmp_tuple_element_21 = const_str_plain_VerifiedHTTPSConnection;
tmp_args_name_11 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_21 );
PyTuple_SET_ITEM( tmp_args_name_11, 0, tmp_tuple_element_21 );
CHECK_OBJECT( tmp_class_creation_6__bases );
tmp_tuple_element_21 = tmp_class_creation_6__bases;
Py_INCREF( tmp_tuple_element_21 );
PyTuple_SET_ITEM( tmp_args_name_11, 1, tmp_tuple_element_21 );
CHECK_OBJECT( tmp_class_creation_6__class_decl_dict );
tmp_kw_name_11 = tmp_class_creation_6__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 276;
tmp_assign_source_81 = CALL_FUNCTION( tmp_called_name_13, tmp_args_name_11, tmp_kw_name_11 );
Py_DECREF( tmp_called_name_13 );
Py_DECREF( tmp_args_name_11 );
if ( tmp_assign_source_81 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
assert( tmp_class_creation_6__prepared == NULL );
tmp_class_creation_6__prepared = tmp_assign_source_81;
}
{
nuitka_bool tmp_condition_result_38;
PyObject *tmp_operand_name_6;
PyObject *tmp_source_name_27;
CHECK_OBJECT( tmp_class_creation_6__prepared );
tmp_source_name_27 = tmp_class_creation_6__prepared;
tmp_res = PyObject_HasAttr( tmp_source_name_27, const_str_plain___getitem__ );
tmp_operand_name_6 = ( tmp_res != 0 ) ? Py_True : Py_False;
tmp_res = CHECK_IF_TRUE( tmp_operand_name_6 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
tmp_condition_result_38 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_38 == NUITKA_BOOL_TRUE )
{
goto branch_yes_25;
}
else
{
goto branch_no_25;
}
branch_yes_25:;
{
PyObject *tmp_raise_type_6;
PyObject *tmp_raise_value_6;
PyObject *tmp_left_name_6;
PyObject *tmp_right_name_6;
PyObject *tmp_tuple_element_22;
PyObject *tmp_getattr_target_6;
PyObject *tmp_getattr_attr_6;
PyObject *tmp_getattr_default_6;
PyObject *tmp_source_name_28;
PyObject *tmp_type_arg_12;
tmp_raise_type_6 = PyExc_TypeError;
tmp_left_name_6 = const_str_digest_75fd71b1edada749c2ef7ac810062295;
CHECK_OBJECT( tmp_class_creation_6__metaclass );
tmp_getattr_target_6 = tmp_class_creation_6__metaclass;
tmp_getattr_attr_6 = const_str_plain___name__;
tmp_getattr_default_6 = const_str_angle_metaclass;
tmp_tuple_element_22 = BUILTIN_GETATTR( tmp_getattr_target_6, tmp_getattr_attr_6, tmp_getattr_default_6 );
if ( tmp_tuple_element_22 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
tmp_right_name_6 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_right_name_6, 0, tmp_tuple_element_22 );
CHECK_OBJECT( tmp_class_creation_6__prepared );
tmp_type_arg_12 = tmp_class_creation_6__prepared;
tmp_source_name_28 = BUILTIN_TYPE1( tmp_type_arg_12 );
assert( !(tmp_source_name_28 == NULL) );
tmp_tuple_element_22 = LOOKUP_ATTRIBUTE( tmp_source_name_28, const_str_plain___name__ );
Py_DECREF( tmp_source_name_28 );
if ( tmp_tuple_element_22 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_right_name_6 );
exception_lineno = 276;
goto try_except_handler_24;
}
PyTuple_SET_ITEM( tmp_right_name_6, 1, tmp_tuple_element_22 );
tmp_raise_value_6 = BINARY_OPERATION_REMAINDER( tmp_left_name_6, tmp_right_name_6 );
Py_DECREF( tmp_right_name_6 );
if ( tmp_raise_value_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_24;
}
exception_type = tmp_raise_type_6;
Py_INCREF( tmp_raise_type_6 );
exception_value = tmp_raise_value_6;
exception_lineno = 276;
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
goto try_except_handler_24;
}
branch_no_25:;
}
goto branch_end_24;
branch_no_24:;
{
PyObject *tmp_assign_source_82;
tmp_assign_source_82 = PyDict_New();
assert( tmp_class_creation_6__prepared == NULL );
tmp_class_creation_6__prepared = tmp_assign_source_82;
}
branch_end_24:;
}
{
PyObject *tmp_assign_source_83;
{
PyObject *tmp_set_locals_6;
CHECK_OBJECT( tmp_class_creation_6__prepared );
tmp_set_locals_6 = tmp_class_creation_6__prepared;
locals_urllib3$connection_276 = tmp_set_locals_6;
Py_INCREF( tmp_set_locals_6 );
}
{
// Tried code:
{
// Tried code:
{
tmp_dictset_value = const_str_digest_003800fb824e3437bbbf235acf31301c;
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain___module__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_26;
}
}
{
tmp_dictset_value = const_str_digest_fa24e620292c5ddd664b0f39ae7cf5ea;
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain___doc__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_26;
}
}
{
tmp_dictset_value = const_str_plain_VerifiedHTTPSConnection;
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain___qualname__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_26;
}
}
MAKE_OR_REUSE_FRAME( cache_frame_4548f050f2c31cbba54da18fe72fcddc_4, codeobj_4548f050f2c31cbba54da18fe72fcddc, module_urllib3$connection, sizeof(void *) );
frame_4548f050f2c31cbba54da18fe72fcddc_4 = cache_frame_4548f050f2c31cbba54da18fe72fcddc_4;
// Push the new frame as the currently active one.
pushFrameStack( frame_4548f050f2c31cbba54da18fe72fcddc_4 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_4548f050f2c31cbba54da18fe72fcddc_4 ) == 2 ); // Frame stack
// Framed code:
{
tmp_dictset_value = Py_None;
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain_cert_reqs, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 281;
type_description_2 = "o";
goto frame_exception_exit_4;
}
}
{
tmp_dictset_value = Py_None;
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain_ca_certs, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 282;
type_description_2 = "o";
goto frame_exception_exit_4;
}
}
{
tmp_dictset_value = Py_None;
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain_ca_cert_dir, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 283;
type_description_2 = "o";
goto frame_exception_exit_4;
}
}
{
tmp_dictset_value = Py_None;
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain_ssl_version, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 284;
type_description_2 = "o";
goto frame_exception_exit_4;
}
}
{
tmp_dictset_value = Py_None;
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain_assert_fingerprint, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 285;
type_description_2 = "o";
goto frame_exception_exit_4;
}
}
{
PyObject *tmp_defaults_3;
tmp_defaults_3 = const_tuple_none_none_none_none_none_none_none_tuple;
Py_INCREF( tmp_defaults_3 );
tmp_dictset_value = MAKE_FUNCTION_urllib3$connection$$$function_10_set_cert( tmp_defaults_3 );
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain_set_cert, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 287;
type_description_2 = "o";
goto frame_exception_exit_4;
}
}
{
tmp_dictset_value = MAKE_FUNCTION_urllib3$connection$$$function_11_connect( );
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain_connect, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 312;
type_description_2 = "o";
goto frame_exception_exit_4;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_4548f050f2c31cbba54da18fe72fcddc_4 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_3;
frame_exception_exit_4:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_4548f050f2c31cbba54da18fe72fcddc_4 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_4548f050f2c31cbba54da18fe72fcddc_4, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_4548f050f2c31cbba54da18fe72fcddc_4->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_4548f050f2c31cbba54da18fe72fcddc_4, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_4548f050f2c31cbba54da18fe72fcddc_4,
type_description_2,
outline_5_var___class__
);
// Release cached frame.
if ( frame_4548f050f2c31cbba54da18fe72fcddc_4 == cache_frame_4548f050f2c31cbba54da18fe72fcddc_4 )
{
Py_DECREF( frame_4548f050f2c31cbba54da18fe72fcddc_4 );
}
cache_frame_4548f050f2c31cbba54da18fe72fcddc_4 = NULL;
assertFrameObject( frame_4548f050f2c31cbba54da18fe72fcddc_4 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto nested_frame_exit_3;
frame_no_exception_3:;
goto skip_nested_handling_3;
nested_frame_exit_3:;
goto try_except_handler_26;
skip_nested_handling_3:;
{
nuitka_bool tmp_condition_result_39;
PyObject *tmp_compexpr_left_8;
PyObject *tmp_compexpr_right_8;
CHECK_OBJECT( tmp_class_creation_6__bases );
tmp_compexpr_left_8 = tmp_class_creation_6__bases;
CHECK_OBJECT( tmp_class_creation_6__bases_orig );
tmp_compexpr_right_8 = tmp_class_creation_6__bases_orig;
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_8, tmp_compexpr_right_8 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_26;
}
tmp_condition_result_39 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_39 == NUITKA_BOOL_TRUE )
{
goto branch_yes_26;
}
else
{
goto branch_no_26;
}
branch_yes_26:;
{
CHECK_OBJECT( tmp_class_creation_6__bases_orig );
tmp_dictset_value = tmp_class_creation_6__bases_orig;
tmp_res = PyObject_SetItem( locals_urllib3$connection_276, const_str_plain___orig_bases__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_26;
}
}
branch_no_26:;
}
{
PyObject *tmp_assign_source_84;
PyObject *tmp_called_name_14;
PyObject *tmp_args_name_12;
PyObject *tmp_tuple_element_23;
PyObject *tmp_kw_name_12;
CHECK_OBJECT( tmp_class_creation_6__metaclass );
tmp_called_name_14 = tmp_class_creation_6__metaclass;
tmp_tuple_element_23 = const_str_plain_VerifiedHTTPSConnection;
tmp_args_name_12 = PyTuple_New( 3 );
Py_INCREF( tmp_tuple_element_23 );
PyTuple_SET_ITEM( tmp_args_name_12, 0, tmp_tuple_element_23 );
CHECK_OBJECT( tmp_class_creation_6__bases );
tmp_tuple_element_23 = tmp_class_creation_6__bases;
Py_INCREF( tmp_tuple_element_23 );
PyTuple_SET_ITEM( tmp_args_name_12, 1, tmp_tuple_element_23 );
tmp_tuple_element_23 = locals_urllib3$connection_276;
Py_INCREF( tmp_tuple_element_23 );
PyTuple_SET_ITEM( tmp_args_name_12, 2, tmp_tuple_element_23 );
CHECK_OBJECT( tmp_class_creation_6__class_decl_dict );
tmp_kw_name_12 = tmp_class_creation_6__class_decl_dict;
frame_aa400c26d6baaba6883bb70b16940588->m_frame.f_lineno = 276;
tmp_assign_source_84 = CALL_FUNCTION( tmp_called_name_14, tmp_args_name_12, tmp_kw_name_12 );
Py_DECREF( tmp_args_name_12 );
if ( tmp_assign_source_84 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 276;
goto try_except_handler_26;
}
assert( outline_5_var___class__ == NULL );
outline_5_var___class__ = tmp_assign_source_84;
}
{
CHECK_OBJECT( outline_5_var___class__ );
tmp_assign_source_83 = outline_5_var___class__;
Py_INCREF( tmp_assign_source_83 );
goto try_return_handler_26;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_26:;
{
Py_DECREF( locals_urllib3$connection_276 );
locals_urllib3$connection_276 = NULL;
}
{
goto try_return_handler_25;
}
// Exception handler code:
try_except_handler_26:;
exception_keeper_type_24 = exception_type;
exception_keeper_value_24 = exception_value;
exception_keeper_tb_24 = exception_tb;
exception_keeper_lineno_24 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_DECREF( locals_urllib3$connection_276 );
locals_urllib3$connection_276 = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_24;
exception_value = exception_keeper_value_24;
exception_tb = exception_keeper_tb_24;
exception_lineno = exception_keeper_lineno_24;
goto try_except_handler_25;
}
// End of try:
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_25:;
{
CHECK_OBJECT( (PyObject *)outline_5_var___class__ );
Py_DECREF( outline_5_var___class__ );
outline_5_var___class__ = NULL;
}
{
goto outline_result_6;
}
// Exception handler code:
try_except_handler_25:;
exception_keeper_type_25 = exception_type;
exception_keeper_value_25 = exception_value;
exception_keeper_tb_25 = exception_tb;
exception_keeper_lineno_25 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Re-raise.
exception_type = exception_keeper_type_25;
exception_value = exception_keeper_value_25;
exception_tb = exception_keeper_tb_25;
exception_lineno = exception_keeper_lineno_25;
goto outline_exception_6;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( urllib3$connection );
return MOD_RETURN_VALUE( NULL );
outline_exception_6:;
exception_lineno = 276;
goto try_except_handler_24;
outline_result_6:;
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_VerifiedHTTPSConnection, tmp_assign_source_83 );
}
goto try_end_14;
// Exception handler code:
try_except_handler_24:;
exception_keeper_type_26 = exception_type;
exception_keeper_value_26 = exception_value;
exception_keeper_tb_26 = exception_tb;
exception_keeper_lineno_26 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_class_creation_6__bases );
tmp_class_creation_6__bases = NULL;
}
{
Py_XDECREF( tmp_class_creation_6__class_decl_dict );
tmp_class_creation_6__class_decl_dict = NULL;
}
{
Py_XDECREF( tmp_class_creation_6__metaclass );
tmp_class_creation_6__metaclass = NULL;
}
{
Py_XDECREF( tmp_class_creation_6__prepared );
tmp_class_creation_6__prepared = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_26;
exception_value = exception_keeper_value_26;
exception_tb = exception_keeper_tb_26;
exception_lineno = exception_keeper_lineno_26;
goto frame_exception_exit_1;
}
// End of try:
try_end_14:;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_6__bases );
Py_DECREF( tmp_class_creation_6__bases );
tmp_class_creation_6__bases = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_6__class_decl_dict );
Py_DECREF( tmp_class_creation_6__class_decl_dict );
tmp_class_creation_6__class_decl_dict = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_6__metaclass );
Py_DECREF( tmp_class_creation_6__metaclass );
tmp_class_creation_6__metaclass = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_6__prepared );
Py_DECREF( tmp_class_creation_6__prepared );
tmp_class_creation_6__prepared = NULL;
}
{
PyObject *tmp_assign_source_85;
tmp_assign_source_85 = MAKE_FUNCTION_urllib3$connection$$$function_12__match_hostname( );
UPDATE_STRING_DICT1( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain__match_hostname, tmp_assign_source_85 );
}
{
nuitka_bool tmp_condition_result_40;
PyObject *tmp_mvar_value_13;
int tmp_truth_name_7;
tmp_mvar_value_13 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_ssl );
if (unlikely( tmp_mvar_value_13 == NULL ))
{
tmp_mvar_value_13 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_ssl );
}
if ( tmp_mvar_value_13 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "ssl" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 398;
goto frame_exception_exit_1;
}
tmp_truth_name_7 = CHECK_IF_TRUE( tmp_mvar_value_13 );
if ( tmp_truth_name_7 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 398;
goto frame_exception_exit_1;
}
tmp_condition_result_40 = tmp_truth_name_7 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_40 == NUITKA_BOOL_TRUE )
{
goto branch_yes_27;
}
else
{
goto branch_no_27;
}
branch_yes_27:;
{
PyObject *tmp_assign_source_86;
PyObject *tmp_mvar_value_14;
tmp_mvar_value_14 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPSConnection );
if (unlikely( tmp_mvar_value_14 == NULL ))
{
tmp_mvar_value_14 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_HTTPSConnection );
}
if ( tmp_mvar_value_14 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "HTTPSConnection" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 400;
goto frame_exception_exit_1;
}
tmp_assign_source_86 = tmp_mvar_value_14;
UPDATE_STRING_DICT0( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_UnverifiedHTTPSConnection, tmp_assign_source_86 );
}
{
PyObject *tmp_assign_source_87;
PyObject *tmp_mvar_value_15;
tmp_mvar_value_15 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_VerifiedHTTPSConnection );
if (unlikely( tmp_mvar_value_15 == NULL ))
{
tmp_mvar_value_15 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_VerifiedHTTPSConnection );
}
if ( tmp_mvar_value_15 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "VerifiedHTTPSConnection" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 401;
goto frame_exception_exit_1;
}
tmp_assign_source_87 = tmp_mvar_value_15;
UPDATE_STRING_DICT0( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPSConnection, tmp_assign_source_87 );
}
goto branch_end_27;
branch_no_27:;
{
PyObject *tmp_assign_source_88;
PyObject *tmp_mvar_value_16;
tmp_mvar_value_16 = GET_STRING_DICT_VALUE( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_DummyConnection );
if (unlikely( tmp_mvar_value_16 == NULL ))
{
tmp_mvar_value_16 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_DummyConnection );
}
if ( tmp_mvar_value_16 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "DummyConnection" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 403;
goto frame_exception_exit_1;
}
tmp_assign_source_88 = tmp_mvar_value_16;
UPDATE_STRING_DICT0( moduledict_urllib3$connection, (Nuitka_StringObject *)const_str_plain_HTTPSConnection, tmp_assign_source_88 );
}
branch_end_27:;
}
// Restore frame exception if necessary.
#if 0
RESTORE_FRAME_EXCEPTION( frame_aa400c26d6baaba6883bb70b16940588 );
#endif
popFrameStack();
assertFrameObject( frame_aa400c26d6baaba6883bb70b16940588 );
goto frame_no_exception_4;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_aa400c26d6baaba6883bb70b16940588 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_aa400c26d6baaba6883bb70b16940588, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_aa400c26d6baaba6883bb70b16940588->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_aa400c26d6baaba6883bb70b16940588, exception_lineno );
}
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto module_exception_exit;
frame_no_exception_4:;
return MOD_RETURN_VALUE( module_urllib3$connection );
module_exception_exit:
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return MOD_RETURN_VALUE( NULL );
}