mirror of
https://github.com/house-of-vanity/fesmoo_perdoliq.git
synced 2025-08-21 16:17:15 +00:00
10880 lines
340 KiB
C
10880 lines
340 KiB
C
/* Generated code for Python source for module 'cryptography.utils'
|
|
* 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_cryptography$utils 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_cryptography$utils;
|
|
PyDictObject *moduledict_cryptography$utils;
|
|
|
|
/* The module constants used, if any. */
|
|
static PyObject *const_str_digest_af6997b40dc5114deaab693f4011e0e1;
|
|
extern PyObject *const_str_plain_warn;
|
|
static PyObject *const_str_plain_inner;
|
|
extern PyObject *const_str_plain_result;
|
|
extern PyObject *const_str_plain_big;
|
|
extern PyObject *const_str_plain_metaclass;
|
|
static PyObject *const_str_digest_de8b0a46730389a37585d0405f18ddc7;
|
|
static PyObject *const_tuple_str_plain_iface_str_plain_register_decorator_tuple;
|
|
extern PyObject *const_str_plain___name__;
|
|
extern PyObject *const_str_plain_UserWarning;
|
|
extern PyObject *const_tuple_str_plain___class___tuple;
|
|
extern PyObject *const_str_plain_delattr;
|
|
extern PyObject *const_str_angle_metaclass;
|
|
extern PyObject *const_str_plain_object;
|
|
extern PyObject *const_str_plain___file__;
|
|
extern PyObject *const_str_plain_abc;
|
|
extern PyObject *const_str_plain_bytes;
|
|
extern PyObject *const_str_plain_division;
|
|
extern PyObject *const_dict_f154c9a58c9419d7e391901d7b7fe49e;
|
|
static PyObject *const_tuple_aa16832ff0cb547ba9a4f89112df6d01_tuple;
|
|
static PyObject *const_tuple_a8f0e7e0c6dcf4cf6888cf0844c32a4e_tuple;
|
|
extern PyObject *const_str_plain_instance;
|
|
static PyObject *const_str_plain_register_decorator;
|
|
extern PyObject *const_str_plain_None;
|
|
extern PyObject *const_str_plain__module;
|
|
extern PyObject *const_str_plain_signature;
|
|
static PyObject *const_tuple_str_plain_self_str_plain_attr_str_plain_value_tuple;
|
|
static PyObject *const_tuple_560b1fb1cd63ba2c4638dbca8b087617_tuple;
|
|
static PyObject *const_str_plain_warning_class;
|
|
extern PyObject *const_str_plain_func;
|
|
static PyObject *const_tuple_str_plain_integer_str_plain_length_tuple;
|
|
static PyObject *const_tuple_str_plain_klass_str_plain_predicate_str_plain_iface_tuple;
|
|
extern PyObject *const_str_plain_cache;
|
|
extern PyObject *const_str_plain_absolute_import;
|
|
extern PyObject *const_str_plain___doc__;
|
|
extern PyObject *const_str_plain_DeprecatedIn23;
|
|
static PyObject *const_str_plain__ModuleWithDeprecations;
|
|
extern PyObject *const_str_plain__check_bytes;
|
|
extern PyObject *const_str_plain___orig_bases__;
|
|
static PyObject *const_str_digest_c19b561c21fe8f0ed667490b9edc9eb8;
|
|
static PyObject *const_str_digest_9e83c4db96f8c33e4932c23de15e3bdf;
|
|
extern PyObject *const_str_plain_register_interface_if;
|
|
extern PyObject *const_str_plain_warnings;
|
|
static PyObject *const_tuple_str_plain_klass_str_plain_iface_tuple;
|
|
extern PyObject *const_str_plain___qualname__;
|
|
static PyObject *const_str_plain_actual;
|
|
extern PyObject *const_str_plain_bit_length;
|
|
extern PyObject *const_str_plain___setattr__;
|
|
extern PyObject *const_str_plain_int;
|
|
extern PyObject *const_str_plain_value;
|
|
extern PyObject *const_tuple_str_plain_self_tuple;
|
|
static PyObject *const_tuple_cddcd0a7b0a31d77ed90ed597032b0bb_tuple;
|
|
static PyObject *const_str_plain_verify_interface;
|
|
static PyObject *const_str_digest_9548779aff339cdb93c2780bc3de1e2a;
|
|
extern PyObject *const_str_plain_message;
|
|
extern PyObject *const_int_pos_8;
|
|
static PyObject *const_str_plain_cached_name;
|
|
static PyObject *const_tuple_31754dc54d7b0f3d7ba129603abb7c64_tuple;
|
|
extern PyObject *const_tuple_empty;
|
|
extern PyObject *const_str_plain___getattr__;
|
|
extern PyObject *const_str_plain_int_from_bytes;
|
|
extern PyObject *const_str_plain_name;
|
|
static PyObject *const_str_digest_991807c0ea9978056a9578b943e124b7;
|
|
extern PyObject *const_tuple_str_plain_name_str_plain_value_tuple;
|
|
static PyObject *const_str_digest_7ffd55158caec8b225d2fb8d78ec9c0b;
|
|
extern PyObject *const_str_plain_attr;
|
|
extern PyObject *const_tuple_str_plain_x_tuple;
|
|
extern PyObject *const_str_plain_register_interface;
|
|
static PyObject *const_str_digest_d2b061b17cc9bdf30f09d31983c7cf7a;
|
|
extern PyObject *const_str_plain_stacklevel;
|
|
static PyObject *const_str_plain_integer;
|
|
static PyObject *const_tuple_str_plain_self_str_plain_attr_str_plain_obj_tuple;
|
|
extern PyObject *const_str_plain___getitem__;
|
|
extern PyObject *const_str_plain___dir__;
|
|
static PyObject *const_list_str_plain__module_list;
|
|
static PyObject *const_str_plain_sentinel;
|
|
extern PyObject *const_int_0;
|
|
static PyObject *const_str_plain___delattr__;
|
|
extern PyObject *const_str_plain_cached_property;
|
|
extern PyObject *const_str_plain_register;
|
|
extern PyObject *const_str_plain_DeprecatedIn21;
|
|
extern PyObject *const_str_plain_sig;
|
|
static PyObject *const_str_plain_CryptographyDeprecationWarning;
|
|
extern PyObject *const_tuple_str_plain_self_str_plain_name_tuple;
|
|
extern PyObject *const_str_plain_length;
|
|
static PyObject *const_str_digest_37378246ddd57fc2739c52f3ca0022ec;
|
|
extern PyObject *const_str_digest_75fd71b1edada749c2ef7ac810062295;
|
|
extern PyObject *const_str_plain_x;
|
|
static PyObject *const_tuple_6d2e4c8f84e9a9d4135c726af1421f88_tuple;
|
|
extern PyObject *const_tuple_str_plain_self_str_plain_module_tuple;
|
|
extern PyObject *const_str_angle_lambda;
|
|
extern PyObject *const_str_plain_type;
|
|
static PyObject *const_str_plain_getargspec;
|
|
static PyObject *const_str_plain_deprecated;
|
|
extern PyObject *const_str_plain___cached__;
|
|
extern PyObject *const_str_plain_modules;
|
|
extern PyObject *const_str_plain_print_function;
|
|
extern PyObject *const_str_plain___class__;
|
|
extern PyObject *const_tuple_none_tuple;
|
|
extern PyObject *const_tuple_type_Exception_tuple;
|
|
static PyObject *const_str_plain_InterfaceNotImplemented;
|
|
extern PyObject *const_str_plain___module__;
|
|
extern PyObject *const_tuple_type_object_tuple;
|
|
static PyObject *const_str_plain__DeprecatedValue;
|
|
extern PyObject *const_str_plain_sys;
|
|
extern PyObject *const_str_plain_binascii;
|
|
static PyObject *const_str_plain_predicate;
|
|
extern PyObject *const_int_pos_1;
|
|
extern PyObject *const_str_plain_module_name;
|
|
static PyObject *const_str_digest_4a949517a6bb82a7ce4d1e16ba017b77;
|
|
static PyObject *const_str_digest_c123f49ec7dc041d5a18567d267cc37c;
|
|
static PyObject *const_str_digest_8ae996c7d5c83fa9570321dbacf761be;
|
|
extern PyObject *const_str_plain___prepare__;
|
|
extern PyObject *const_str_plain___init__;
|
|
extern PyObject *const_str_plain_abstractproperty;
|
|
extern PyObject *const_str_plain_self;
|
|
static PyObject *const_str_digest_8b0e1374dcc590bdb16ac8ec2446b5d1;
|
|
extern PyObject *const_str_plain_inspect;
|
|
extern PyObject *const_tuple_str_plain_name_tuple;
|
|
extern PyObject *const_str_plain_method;
|
|
extern PyObject *const_str_plain_module;
|
|
extern PyObject *const_int_pos_7;
|
|
static PyObject *const_str_digest_873ceacb0a8ea77e63b164ce2cb32d6f;
|
|
static PyObject *const_str_plain_iface;
|
|
extern PyObject *const_str_plain_int_to_bytes;
|
|
extern PyObject *const_int_pos_2;
|
|
extern PyObject *const_str_plain_to_bytes;
|
|
extern PyObject *const_str_plain_PersistentlyDeprecated;
|
|
extern PyObject *const_str_plain_from_bytes;
|
|
static PyObject *const_str_plain___abstractmethods__;
|
|
extern PyObject *const_str_plain_format;
|
|
extern PyObject *const_str_plain_obj;
|
|
extern PyObject *const_str_plain_property;
|
|
static PyObject *const_str_digest_02877ade627df860c5126f0f8a69f3f0;
|
|
static PyObject *const_str_digest_5c3a2d8607eadf447d860ab64e27be77;
|
|
extern PyObject *const_str_plain_read_only_property;
|
|
extern PyObject *const_str_plain_klass;
|
|
static PyObject *const_str_digest_6f9d18bcef4d922bea22eaa6c4288e94;
|
|
static PyObject *module_filename_obj;
|
|
|
|
static bool constants_created = false;
|
|
|
|
static void createModuleConstants( void )
|
|
{
|
|
const_str_digest_af6997b40dc5114deaab693f4011e0e1 = UNSTREAM_STRING( &constant_bin[ 508310 ], 32, 0 );
|
|
const_str_plain_inner = UNSTREAM_STRING( &constant_bin[ 448780 ], 5, 1 );
|
|
const_str_digest_de8b0a46730389a37585d0405f18ddc7 = UNSTREAM_STRING( &constant_bin[ 508342 ], 35, 0 );
|
|
const_tuple_str_plain_iface_str_plain_register_decorator_tuple = PyTuple_New( 2 );
|
|
const_str_plain_iface = UNSTREAM_STRING( &constant_bin[ 508377 ], 5, 1 );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_iface_str_plain_register_decorator_tuple, 0, const_str_plain_iface ); Py_INCREF( const_str_plain_iface );
|
|
const_str_plain_register_decorator = UNSTREAM_STRING( &constant_bin[ 508382 ], 18, 1 );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_iface_str_plain_register_decorator_tuple, 1, const_str_plain_register_decorator ); Py_INCREF( const_str_plain_register_decorator );
|
|
const_tuple_aa16832ff0cb547ba9a4f89112df6d01_tuple = PyTuple_New( 5 );
|
|
PyTuple_SET_ITEM( const_tuple_aa16832ff0cb547ba9a4f89112df6d01_tuple, 0, const_str_plain_value ); Py_INCREF( const_str_plain_value );
|
|
PyTuple_SET_ITEM( const_tuple_aa16832ff0cb547ba9a4f89112df6d01_tuple, 1, const_str_plain_module_name ); Py_INCREF( const_str_plain_module_name );
|
|
PyTuple_SET_ITEM( const_tuple_aa16832ff0cb547ba9a4f89112df6d01_tuple, 2, const_str_plain_message ); Py_INCREF( const_str_plain_message );
|
|
const_str_plain_warning_class = UNSTREAM_STRING( &constant_bin[ 508400 ], 13, 1 );
|
|
PyTuple_SET_ITEM( const_tuple_aa16832ff0cb547ba9a4f89112df6d01_tuple, 3, const_str_plain_warning_class ); Py_INCREF( const_str_plain_warning_class );
|
|
PyTuple_SET_ITEM( const_tuple_aa16832ff0cb547ba9a4f89112df6d01_tuple, 4, const_str_plain_module ); Py_INCREF( const_str_plain_module );
|
|
const_tuple_a8f0e7e0c6dcf4cf6888cf0844c32a4e_tuple = PyTuple_New( 3 );
|
|
const_str_plain_predicate = UNSTREAM_STRING( &constant_bin[ 508413 ], 9, 1 );
|
|
PyTuple_SET_ITEM( const_tuple_a8f0e7e0c6dcf4cf6888cf0844c32a4e_tuple, 0, const_str_plain_predicate ); Py_INCREF( const_str_plain_predicate );
|
|
PyTuple_SET_ITEM( const_tuple_a8f0e7e0c6dcf4cf6888cf0844c32a4e_tuple, 1, const_str_plain_iface ); Py_INCREF( const_str_plain_iface );
|
|
PyTuple_SET_ITEM( const_tuple_a8f0e7e0c6dcf4cf6888cf0844c32a4e_tuple, 2, const_str_plain_register_decorator ); Py_INCREF( const_str_plain_register_decorator );
|
|
const_tuple_str_plain_self_str_plain_attr_str_plain_value_tuple = PyTuple_New( 3 );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_attr_str_plain_value_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_attr_str_plain_value_tuple, 1, const_str_plain_attr ); Py_INCREF( const_str_plain_attr );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_attr_str_plain_value_tuple, 2, const_str_plain_value ); Py_INCREF( const_str_plain_value );
|
|
const_tuple_560b1fb1cd63ba2c4638dbca8b087617_tuple = PyTuple_New( 5 );
|
|
PyTuple_SET_ITEM( const_tuple_560b1fb1cd63ba2c4638dbca8b087617_tuple, 0, const_str_plain_iface ); Py_INCREF( const_str_plain_iface );
|
|
PyTuple_SET_ITEM( const_tuple_560b1fb1cd63ba2c4638dbca8b087617_tuple, 1, const_str_plain_klass ); Py_INCREF( const_str_plain_klass );
|
|
PyTuple_SET_ITEM( const_tuple_560b1fb1cd63ba2c4638dbca8b087617_tuple, 2, const_str_plain_method ); Py_INCREF( const_str_plain_method );
|
|
PyTuple_SET_ITEM( const_tuple_560b1fb1cd63ba2c4638dbca8b087617_tuple, 3, const_str_plain_sig ); Py_INCREF( const_str_plain_sig );
|
|
const_str_plain_actual = UNSTREAM_STRING( &constant_bin[ 102628 ], 6, 1 );
|
|
PyTuple_SET_ITEM( const_tuple_560b1fb1cd63ba2c4638dbca8b087617_tuple, 4, const_str_plain_actual ); Py_INCREF( const_str_plain_actual );
|
|
const_tuple_str_plain_integer_str_plain_length_tuple = PyTuple_New( 2 );
|
|
const_str_plain_integer = UNSTREAM_STRING( &constant_bin[ 2401 ], 7, 1 );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_integer_str_plain_length_tuple, 0, const_str_plain_integer ); Py_INCREF( const_str_plain_integer );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_integer_str_plain_length_tuple, 1, const_str_plain_length ); Py_INCREF( const_str_plain_length );
|
|
const_tuple_str_plain_klass_str_plain_predicate_str_plain_iface_tuple = PyTuple_New( 3 );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_klass_str_plain_predicate_str_plain_iface_tuple, 0, const_str_plain_klass ); Py_INCREF( const_str_plain_klass );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_klass_str_plain_predicate_str_plain_iface_tuple, 1, const_str_plain_predicate ); Py_INCREF( const_str_plain_predicate );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_klass_str_plain_predicate_str_plain_iface_tuple, 2, const_str_plain_iface ); Py_INCREF( const_str_plain_iface );
|
|
const_str_plain__ModuleWithDeprecations = UNSTREAM_STRING( &constant_bin[ 508310 ], 23, 1 );
|
|
const_str_digest_c19b561c21fe8f0ed667490b9edc9eb8 = UNSTREAM_STRING( &constant_bin[ 508422 ], 11, 0 );
|
|
const_str_digest_9e83c4db96f8c33e4932c23de15e3bdf = UNSTREAM_STRING( &constant_bin[ 508433 ], 36, 0 );
|
|
const_tuple_str_plain_klass_str_plain_iface_tuple = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_klass_str_plain_iface_tuple, 0, const_str_plain_klass ); Py_INCREF( const_str_plain_klass );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_klass_str_plain_iface_tuple, 1, const_str_plain_iface ); Py_INCREF( const_str_plain_iface );
|
|
const_tuple_cddcd0a7b0a31d77ed90ed597032b0bb_tuple = PyTuple_New( 6 );
|
|
PyTuple_SET_ITEM( const_tuple_cddcd0a7b0a31d77ed90ed597032b0bb_tuple, 0, const_str_plain_instance ); Py_INCREF( const_str_plain_instance );
|
|
PyTuple_SET_ITEM( const_tuple_cddcd0a7b0a31d77ed90ed597032b0bb_tuple, 1, const_str_plain_cache ); Py_INCREF( const_str_plain_cache );
|
|
PyTuple_SET_ITEM( const_tuple_cddcd0a7b0a31d77ed90ed597032b0bb_tuple, 2, const_str_plain_result ); Py_INCREF( const_str_plain_result );
|
|
const_str_plain_cached_name = UNSTREAM_STRING( &constant_bin[ 508469 ], 11, 1 );
|
|
PyTuple_SET_ITEM( const_tuple_cddcd0a7b0a31d77ed90ed597032b0bb_tuple, 3, const_str_plain_cached_name ); Py_INCREF( const_str_plain_cached_name );
|
|
const_str_plain_sentinel = UNSTREAM_STRING( &constant_bin[ 508480 ], 8, 1 );
|
|
PyTuple_SET_ITEM( const_tuple_cddcd0a7b0a31d77ed90ed597032b0bb_tuple, 4, const_str_plain_sentinel ); Py_INCREF( const_str_plain_sentinel );
|
|
PyTuple_SET_ITEM( const_tuple_cddcd0a7b0a31d77ed90ed597032b0bb_tuple, 5, const_str_plain_func ); Py_INCREF( const_str_plain_func );
|
|
const_str_plain_verify_interface = UNSTREAM_STRING( &constant_bin[ 508488 ], 16, 1 );
|
|
const_str_digest_9548779aff339cdb93c2780bc3de1e2a = UNSTREAM_STRING( &constant_bin[ 508504 ], 35, 0 );
|
|
const_tuple_31754dc54d7b0f3d7ba129603abb7c64_tuple = PyTuple_New( 4 );
|
|
PyTuple_SET_ITEM( const_tuple_31754dc54d7b0f3d7ba129603abb7c64_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
|
|
PyTuple_SET_ITEM( const_tuple_31754dc54d7b0f3d7ba129603abb7c64_tuple, 1, const_str_plain_value ); Py_INCREF( const_str_plain_value );
|
|
PyTuple_SET_ITEM( const_tuple_31754dc54d7b0f3d7ba129603abb7c64_tuple, 2, const_str_plain_message ); Py_INCREF( const_str_plain_message );
|
|
PyTuple_SET_ITEM( const_tuple_31754dc54d7b0f3d7ba129603abb7c64_tuple, 3, const_str_plain_warning_class ); Py_INCREF( const_str_plain_warning_class );
|
|
const_str_digest_991807c0ea9978056a9578b943e124b7 = UNSTREAM_STRING( &constant_bin[ 508539 ], 17, 0 );
|
|
const_str_digest_7ffd55158caec8b225d2fb8d78ec9c0b = UNSTREAM_STRING( &constant_bin[ 508556 ], 30, 0 );
|
|
const_str_digest_d2b061b17cc9bdf30f09d31983c7cf7a = UNSTREAM_STRING( &constant_bin[ 508586 ], 29, 0 );
|
|
const_tuple_str_plain_self_str_plain_attr_str_plain_obj_tuple = PyTuple_New( 3 );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_attr_str_plain_obj_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_attr_str_plain_obj_tuple, 1, const_str_plain_attr ); Py_INCREF( const_str_plain_attr );
|
|
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_attr_str_plain_obj_tuple, 2, const_str_plain_obj ); Py_INCREF( const_str_plain_obj );
|
|
const_list_str_plain__module_list = PyList_New( 1 );
|
|
PyList_SET_ITEM( const_list_str_plain__module_list, 0, const_str_plain__module ); Py_INCREF( const_str_plain__module );
|
|
const_str_plain___delattr__ = UNSTREAM_STRING( &constant_bin[ 508528 ], 11, 1 );
|
|
const_str_plain_CryptographyDeprecationWarning = UNSTREAM_STRING( &constant_bin[ 508615 ], 30, 1 );
|
|
const_str_digest_37378246ddd57fc2739c52f3ca0022ec = UNSTREAM_STRING( &constant_bin[ 508645 ], 79, 0 );
|
|
const_tuple_6d2e4c8f84e9a9d4135c726af1421f88_tuple = PyTuple_New( 4 );
|
|
PyTuple_SET_ITEM( const_tuple_6d2e4c8f84e9a9d4135c726af1421f88_tuple, 0, const_str_plain_func ); Py_INCREF( const_str_plain_func );
|
|
PyTuple_SET_ITEM( const_tuple_6d2e4c8f84e9a9d4135c726af1421f88_tuple, 1, const_str_plain_cached_name ); Py_INCREF( const_str_plain_cached_name );
|
|
PyTuple_SET_ITEM( const_tuple_6d2e4c8f84e9a9d4135c726af1421f88_tuple, 2, const_str_plain_sentinel ); Py_INCREF( const_str_plain_sentinel );
|
|
PyTuple_SET_ITEM( const_tuple_6d2e4c8f84e9a9d4135c726af1421f88_tuple, 3, const_str_plain_inner ); Py_INCREF( const_str_plain_inner );
|
|
const_str_plain_getargspec = UNSTREAM_STRING( &constant_bin[ 508724 ], 10, 1 );
|
|
const_str_plain_deprecated = UNSTREAM_STRING( &constant_bin[ 98892 ], 10, 1 );
|
|
const_str_plain_InterfaceNotImplemented = UNSTREAM_STRING( &constant_bin[ 508734 ], 23, 1 );
|
|
const_str_plain__DeprecatedValue = UNSTREAM_STRING( &constant_bin[ 508757 ], 16, 1 );
|
|
const_str_digest_4a949517a6bb82a7ce4d1e16ba017b77 = UNSTREAM_STRING( &constant_bin[ 508773 ], 54, 0 );
|
|
const_str_digest_c123f49ec7dc041d5a18567d267cc37c = UNSTREAM_STRING( &constant_bin[ 508827 ], 35, 0 );
|
|
const_str_digest_8ae996c7d5c83fa9570321dbacf761be = UNSTREAM_STRING( &constant_bin[ 508862 ], 31, 0 );
|
|
const_str_digest_8b0e1374dcc590bdb16ac8ec2446b5d1 = UNSTREAM_STRING( &constant_bin[ 508893 ], 18, 0 );
|
|
const_str_digest_873ceacb0a8ea77e63b164ce2cb32d6f = UNSTREAM_STRING( &constant_bin[ 508911 ], 27, 0 );
|
|
const_str_plain___abstractmethods__ = UNSTREAM_STRING( &constant_bin[ 508938 ], 19, 1 );
|
|
const_str_digest_02877ade627df860c5126f0f8a69f3f0 = UNSTREAM_STRING( &constant_bin[ 508957 ], 46, 0 );
|
|
const_str_digest_5c3a2d8607eadf447d860ab64e27be77 = UNSTREAM_STRING( &constant_bin[ 509003 ], 49, 0 );
|
|
const_str_digest_6f9d18bcef4d922bea22eaa6c4288e94 = UNSTREAM_STRING( &constant_bin[ 509052 ], 25, 0 );
|
|
|
|
constants_created = true;
|
|
}
|
|
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
void checkModuleConstants_cryptography$utils( void )
|
|
{
|
|
// The module may not have been used at all.
|
|
if (constants_created == false) return;
|
|
|
|
|
|
}
|
|
#endif
|
|
|
|
// The module code objects.
|
|
static PyCodeObject *codeobj_b85e3928a16990cbcd75fd29a20f2b34;
|
|
static PyCodeObject *codeobj_3093c087e5d66857d5e54e104fb8f46d;
|
|
static PyCodeObject *codeobj_7633978a89564355b7ca68813fb0ac25;
|
|
static PyCodeObject *codeobj_4f5eb749d2e42ac55a98a62d32709812;
|
|
static PyCodeObject *codeobj_9fce0ee10c63f7b6db78b05685e71def;
|
|
static PyCodeObject *codeobj_94baf283693c1756947b617cb6291c5c;
|
|
static PyCodeObject *codeobj_2d7ee2996200ce3c49a5a86cd7c632dd;
|
|
static PyCodeObject *codeobj_8a7ea647a4af74d7ce0b1b23cf4fd605;
|
|
static PyCodeObject *codeobj_24f77e4979d6f47e45953536eb307b21;
|
|
static PyCodeObject *codeobj_f23d556e7059bc16501cd75e54975d59;
|
|
static PyCodeObject *codeobj_82e9afe43bd1e476deb2f50896ef0d9e;
|
|
static PyCodeObject *codeobj_9ce9cc3f6af403b361b0ef1327876045;
|
|
static PyCodeObject *codeobj_8b2ddd1838998fca0adecac574fd322a;
|
|
static PyCodeObject *codeobj_29b05ad771331362b270765ccd6078f8;
|
|
static PyCodeObject *codeobj_c1079d473fbf278b11d5b55fb8527333;
|
|
static PyCodeObject *codeobj_f2ef91930af51d38d7dca81bb7590120;
|
|
static PyCodeObject *codeobj_90ef44d27d321948a5c4525d26ce7895;
|
|
static PyCodeObject *codeobj_ecfcf044faff2e27f8363ebf325c1c79;
|
|
static PyCodeObject *codeobj_f1b483cef5af2b2c7d02429f0b9ab788;
|
|
static PyCodeObject *codeobj_592bddb655682d82e054f41f860f173c;
|
|
static PyCodeObject *codeobj_df6ca80ef0518a66bdf97196df148d69;
|
|
static PyCodeObject *codeobj_e413c426b5dd868d2b76f01b0169d044;
|
|
|
|
static void createModuleCodeObjects(void)
|
|
{
|
|
module_filename_obj = const_str_digest_4a949517a6bb82a7ce4d1e16ba017b77;
|
|
codeobj_b85e3928a16990cbcd75fd29a20f2b34 = MAKE_CODEOBJ( module_filename_obj, const_str_angle_lambda, 34, const_tuple_str_plain_self_str_plain_name_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS );
|
|
codeobj_3093c087e5d66857d5e54e104fb8f46d = MAKE_CODEOBJ( module_filename_obj, const_str_digest_873ceacb0a8ea77e63b164ce2cb32d6f, 1, const_tuple_empty, 0, 0, CO_NOFREE );
|
|
codeobj_7633978a89564355b7ca68813fb0ac25 = MAKE_CODEOBJ( module_filename_obj, const_str_plain__DeprecatedValue, 115, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
|
|
codeobj_4f5eb749d2e42ac55a98a62d32709812 = MAKE_CODEOBJ( module_filename_obj, const_str_plain__ModuleWithDeprecations, 122, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
|
|
codeobj_9fce0ee10c63f7b6db78b05685e71def = MAKE_CODEOBJ( module_filename_obj, const_str_plain___delattr__, 136, const_tuple_str_plain_self_str_plain_attr_str_plain_obj_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_94baf283693c1756947b617cb6291c5c = MAKE_CODEOBJ( module_filename_obj, const_str_plain___dir__, 143, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_2d7ee2996200ce3c49a5a86cd7c632dd = MAKE_CODEOBJ( module_filename_obj, const_str_plain___getattr__, 126, const_tuple_str_plain_self_str_plain_attr_str_plain_obj_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_8a7ea647a4af74d7ce0b1b23cf4fd605 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 116, const_tuple_31754dc54d7b0f3d7ba129603abb7c64_tuple, 4, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_24f77e4979d6f47e45953536eb307b21 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 123, const_tuple_str_plain_self_str_plain_module_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_f23d556e7059bc16501cd75e54975d59 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___setattr__, 133, const_tuple_str_plain_self_str_plain_attr_str_plain_value_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_82e9afe43bd1e476deb2f50896ef0d9e = MAKE_CODEOBJ( module_filename_obj, const_str_plain__check_bytes, 28, const_tuple_str_plain_name_str_plain_value_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_9ce9cc3f6af403b361b0ef1327876045 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_bit_length, 111, const_tuple_str_plain_x_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_8b2ddd1838998fca0adecac574fd322a = MAKE_CODEOBJ( module_filename_obj, const_str_plain_cached_property, 154, const_tuple_6d2e4c8f84e9a9d4135c726af1421f88_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_29b05ad771331362b270765ccd6078f8 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_deprecated, 147, const_tuple_aa16832ff0cb547ba9a4f89112df6d01_tuple, 4, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_c1079d473fbf278b11d5b55fb8527333 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_inner, 158, const_tuple_cddcd0a7b0a31d77ed90ed597032b0bb_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS );
|
|
codeobj_f2ef91930af51d38d7dca81bb7590120 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_int_to_bytes, 65, const_tuple_str_plain_integer_str_plain_length_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_90ef44d27d321948a5c4525d26ce7895 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_read_only_property, 33, const_tuple_str_plain_name_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_ecfcf044faff2e27f8363ebf325c1c79 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_register_decorator, 38, const_tuple_str_plain_klass_str_plain_iface_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS );
|
|
codeobj_f1b483cef5af2b2c7d02429f0b9ab788 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_register_decorator, 46, const_tuple_str_plain_klass_str_plain_predicate_str_plain_iface_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS );
|
|
codeobj_592bddb655682d82e054f41f860f173c = MAKE_CODEOBJ( module_filename_obj, const_str_plain_register_interface, 37, const_tuple_str_plain_iface_str_plain_register_decorator_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_df6ca80ef0518a66bdf97196df148d69 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_register_interface_if, 45, const_tuple_a8f0e7e0c6dcf4cf6888cf0844c32a4e_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_e413c426b5dd868d2b76f01b0169d044 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_verify_interface, 89, const_tuple_560b1fb1cd63ba2c4638dbca8b087617_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
}
|
|
|
|
// The module function declarations.
|
|
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_1__mro_entries_conversion( PyObject **python_pars );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_10___init__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_11___init__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_12___getattr__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_13___setattr__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_14___delattr__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_15___dir__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_16_deprecated( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_17_cached_property( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_17_cached_property$$$function_1_inner( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_1__check_bytes( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_2_read_only_property( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_2_read_only_property$$$function_1_lambda( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_3_register_interface( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_3_register_interface$$$function_1_register_decorator( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_4_register_interface_if( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_4_register_interface_if$$$function_1_register_decorator( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_6_int_to_bytes( PyObject *defaults );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_8_verify_interface( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_9_bit_length( );
|
|
|
|
|
|
// The module function definitions.
|
|
static PyObject *impl_cryptography$utils$$$function_1__check_bytes( 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_name = python_pars[ 0 ];
|
|
PyObject *par_value = python_pars[ 1 ];
|
|
struct Nuitka_FrameObject *frame_82e9afe43bd1e476deb2f50896ef0d9e;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
int tmp_res;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
static struct Nuitka_FrameObject *cache_frame_82e9afe43bd1e476deb2f50896ef0d9e = 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_82e9afe43bd1e476deb2f50896ef0d9e, codeobj_82e9afe43bd1e476deb2f50896ef0d9e, module_cryptography$utils, sizeof(void *)+sizeof(void *) );
|
|
frame_82e9afe43bd1e476deb2f50896ef0d9e = cache_frame_82e9afe43bd1e476deb2f50896ef0d9e;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_82e9afe43bd1e476deb2f50896ef0d9e );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_82e9afe43bd1e476deb2f50896ef0d9e ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_operand_name_1;
|
|
PyObject *tmp_isinstance_inst_1;
|
|
PyObject *tmp_isinstance_cls_1;
|
|
CHECK_OBJECT( par_value );
|
|
tmp_isinstance_inst_1 = par_value;
|
|
tmp_isinstance_cls_1 = (PyObject *)&PyBytes_Type;
|
|
tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 29;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
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 = 29;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
PyObject *tmp_raise_type_1;
|
|
PyObject *tmp_make_exception_arg_1;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
tmp_source_name_1 = const_str_digest_991807c0ea9978056a9578b943e124b7;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_format );
|
|
assert( !(tmp_called_name_1 == NULL) );
|
|
if ( par_name == 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", "name" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 30;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_1 = par_name;
|
|
frame_82e9afe43bd1e476deb2f50896ef0d9e->m_frame.f_lineno = 30;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_make_exception_arg_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_1 );
|
|
if ( tmp_make_exception_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 30;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
frame_82e9afe43bd1e476deb2f50896ef0d9e->m_frame.f_lineno = 30;
|
|
{
|
|
PyObject *call_args[] = { tmp_make_exception_arg_1 };
|
|
tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( PyExc_TypeError, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_make_exception_arg_1 );
|
|
assert( !(tmp_raise_type_1 == NULL) );
|
|
exception_type = tmp_raise_type_1;
|
|
exception_lineno = 30;
|
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_82e9afe43bd1e476deb2f50896ef0d9e );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_82e9afe43bd1e476deb2f50896ef0d9e );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_82e9afe43bd1e476deb2f50896ef0d9e, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_82e9afe43bd1e476deb2f50896ef0d9e->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_82e9afe43bd1e476deb2f50896ef0d9e, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_82e9afe43bd1e476deb2f50896ef0d9e,
|
|
type_description_1,
|
|
par_name,
|
|
par_value
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_82e9afe43bd1e476deb2f50896ef0d9e == cache_frame_82e9afe43bd1e476deb2f50896ef0d9e )
|
|
{
|
|
Py_DECREF( frame_82e9afe43bd1e476deb2f50896ef0d9e );
|
|
}
|
|
cache_frame_82e9afe43bd1e476deb2f50896ef0d9e = NULL;
|
|
|
|
assertFrameObject( frame_82e9afe43bd1e476deb2f50896ef0d9e );
|
|
|
|
// 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( cryptography$utils$$$function_1__check_bytes );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_name );
|
|
par_name = 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_name );
|
|
par_name = 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( cryptography$utils$$$function_1__check_bytes );
|
|
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_cryptography$utils$$$function_2_read_only_property( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
struct Nuitka_CellObject *par_name = PyCell_NEW1( python_pars[ 0 ] );
|
|
struct Nuitka_FrameObject *frame_90ef44d27d321948a5c4525d26ce7895;
|
|
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_90ef44d27d321948a5c4525d26ce7895 = 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_90ef44d27d321948a5c4525d26ce7895, codeobj_90ef44d27d321948a5c4525d26ce7895, module_cryptography$utils, sizeof(void *) );
|
|
frame_90ef44d27d321948a5c4525d26ce7895 = cache_frame_90ef44d27d321948a5c4525d26ce7895;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_90ef44d27d321948a5c4525d26ce7895 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_90ef44d27d321948a5c4525d26ce7895 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
tmp_called_name_1 = (PyObject *)&PyProperty_Type;
|
|
tmp_args_element_name_1 = MAKE_FUNCTION_cryptography$utils$$$function_2_read_only_property$$$function_1_lambda( );
|
|
|
|
((struct Nuitka_FunctionObject *)tmp_args_element_name_1)->m_closure[0] = par_name;
|
|
Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_args_element_name_1)->m_closure[0] );
|
|
|
|
|
|
frame_90ef44d27d321948a5c4525d26ce7895->m_frame.f_lineno = 34;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_1 );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 34;
|
|
type_description_1 = "c";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_90ef44d27d321948a5c4525d26ce7895 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_90ef44d27d321948a5c4525d26ce7895 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_90ef44d27d321948a5c4525d26ce7895 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_90ef44d27d321948a5c4525d26ce7895, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_90ef44d27d321948a5c4525d26ce7895->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_90ef44d27d321948a5c4525d26ce7895, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_90ef44d27d321948a5c4525d26ce7895,
|
|
type_description_1,
|
|
par_name
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_90ef44d27d321948a5c4525d26ce7895 == cache_frame_90ef44d27d321948a5c4525d26ce7895 )
|
|
{
|
|
Py_DECREF( frame_90ef44d27d321948a5c4525d26ce7895 );
|
|
}
|
|
cache_frame_90ef44d27d321948a5c4525d26ce7895 = NULL;
|
|
|
|
assertFrameObject( frame_90ef44d27d321948a5c4525d26ce7895 );
|
|
|
|
// 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( cryptography$utils$$$function_2_read_only_property );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_name );
|
|
Py_DECREF( par_name );
|
|
par_name = 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;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_name );
|
|
Py_DECREF( par_name );
|
|
par_name = 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( cryptography$utils$$$function_2_read_only_property );
|
|
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_cryptography$utils$$$function_2_read_only_property$$$function_1_lambda( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_self = python_pars[ 0 ];
|
|
struct Nuitka_FrameObject *frame_b85e3928a16990cbcd75fd29a20f2b34;
|
|
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_b85e3928a16990cbcd75fd29a20f2b34 = 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_b85e3928a16990cbcd75fd29a20f2b34, codeobj_b85e3928a16990cbcd75fd29a20f2b34, module_cryptography$utils, sizeof(void *)+sizeof(void *) );
|
|
frame_b85e3928a16990cbcd75fd29a20f2b34 = cache_frame_b85e3928a16990cbcd75fd29a20f2b34;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_b85e3928a16990cbcd75fd29a20f2b34 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_b85e3928a16990cbcd75fd29a20f2b34 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_getattr_target_1;
|
|
PyObject *tmp_getattr_attr_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_getattr_target_1 = par_self;
|
|
if ( PyCell_GET( self->m_closure[0] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "name" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 34;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_getattr_attr_1 = PyCell_GET( self->m_closure[0] );
|
|
tmp_return_value = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, NULL );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 34;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_b85e3928a16990cbcd75fd29a20f2b34 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_b85e3928a16990cbcd75fd29a20f2b34 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_b85e3928a16990cbcd75fd29a20f2b34 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_b85e3928a16990cbcd75fd29a20f2b34, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_b85e3928a16990cbcd75fd29a20f2b34->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_b85e3928a16990cbcd75fd29a20f2b34, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_b85e3928a16990cbcd75fd29a20f2b34,
|
|
type_description_1,
|
|
par_self,
|
|
self->m_closure[0]
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_b85e3928a16990cbcd75fd29a20f2b34 == cache_frame_b85e3928a16990cbcd75fd29a20f2b34 )
|
|
{
|
|
Py_DECREF( frame_b85e3928a16990cbcd75fd29a20f2b34 );
|
|
}
|
|
cache_frame_b85e3928a16990cbcd75fd29a20f2b34 = NULL;
|
|
|
|
assertFrameObject( frame_b85e3928a16990cbcd75fd29a20f2b34 );
|
|
|
|
// 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( cryptography$utils$$$function_2_read_only_property$$$function_1_lambda );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_self );
|
|
Py_DECREF( 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;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_self );
|
|
Py_DECREF( 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( cryptography$utils$$$function_2_read_only_property$$$function_1_lambda );
|
|
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_cryptography$utils$$$function_3_register_interface( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
struct Nuitka_CellObject *par_iface = PyCell_NEW1( python_pars[ 0 ] );
|
|
PyObject *var_register_decorator = NULL;
|
|
PyObject *tmp_return_value = NULL;
|
|
|
|
// Actual function code.
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
tmp_assign_source_1 = MAKE_FUNCTION_cryptography$utils$$$function_3_register_interface$$$function_1_register_decorator( );
|
|
|
|
((struct Nuitka_FunctionObject *)tmp_assign_source_1)->m_closure[0] = par_iface;
|
|
Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_1)->m_closure[0] );
|
|
|
|
|
|
assert( var_register_decorator == NULL );
|
|
var_register_decorator = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
CHECK_OBJECT( var_register_decorator );
|
|
tmp_return_value = var_register_decorator;
|
|
Py_INCREF( tmp_return_value );
|
|
goto try_return_handler_1;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils$$$function_3_register_interface );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_iface );
|
|
Py_DECREF( par_iface );
|
|
par_iface = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_register_decorator );
|
|
var_register_decorator = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils$$$function_3_register_interface );
|
|
return NULL;
|
|
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
static PyObject *impl_cryptography$utils$$$function_3_register_interface$$$function_1_register_decorator( 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_klass = python_pars[ 0 ];
|
|
struct Nuitka_FrameObject *frame_ecfcf044faff2e27f8363ebf325c1c79;
|
|
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 *tmp_return_value = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_ecfcf044faff2e27f8363ebf325c1c79 = 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_ecfcf044faff2e27f8363ebf325c1c79, codeobj_ecfcf044faff2e27f8363ebf325c1c79, module_cryptography$utils, sizeof(void *)+sizeof(void *) );
|
|
frame_ecfcf044faff2e27f8363ebf325c1c79 = cache_frame_ecfcf044faff2e27f8363ebf325c1c79;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_ecfcf044faff2e27f8363ebf325c1c79 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_ecfcf044faff2e27f8363ebf325c1c79 ) == 2 ); // Frame stack
|
|
|
|
// Framed 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_cryptography$utils, (Nuitka_StringObject *)const_str_plain_verify_interface );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_verify_interface );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "verify_interface" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 39;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_name_1 = tmp_mvar_value_1;
|
|
if ( PyCell_GET( self->m_closure[0] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "iface" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 39;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_1 = PyCell_GET( self->m_closure[0] );
|
|
CHECK_OBJECT( par_klass );
|
|
tmp_args_element_name_2 = par_klass;
|
|
frame_ecfcf044faff2e27f8363ebf325c1c79->m_frame.f_lineno = 39;
|
|
{
|
|
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 = 39;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
{
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_args_element_name_3;
|
|
if ( PyCell_GET( self->m_closure[0] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "iface" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 40;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_1 = PyCell_GET( self->m_closure[0] );
|
|
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_register );
|
|
if ( tmp_called_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 40;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_klass == 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", "klass" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 40;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_3 = par_klass;
|
|
frame_ecfcf044faff2e27f8363ebf325c1c79->m_frame.f_lineno = 40;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_3 };
|
|
tmp_unused = CALL_FUNCTION_WITH_ARGS1( 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 = 40;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
{
|
|
if ( par_klass == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "klass" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 41;
|
|
type_description_1 = "oc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_return_value = par_klass;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_ecfcf044faff2e27f8363ebf325c1c79 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_ecfcf044faff2e27f8363ebf325c1c79 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_ecfcf044faff2e27f8363ebf325c1c79 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_ecfcf044faff2e27f8363ebf325c1c79, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_ecfcf044faff2e27f8363ebf325c1c79->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_ecfcf044faff2e27f8363ebf325c1c79, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_ecfcf044faff2e27f8363ebf325c1c79,
|
|
type_description_1,
|
|
par_klass,
|
|
self->m_closure[0]
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_ecfcf044faff2e27f8363ebf325c1c79 == cache_frame_ecfcf044faff2e27f8363ebf325c1c79 )
|
|
{
|
|
Py_DECREF( frame_ecfcf044faff2e27f8363ebf325c1c79 );
|
|
}
|
|
cache_frame_ecfcf044faff2e27f8363ebf325c1c79 = NULL;
|
|
|
|
assertFrameObject( frame_ecfcf044faff2e27f8363ebf325c1c79 );
|
|
|
|
// 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( cryptography$utils$$$function_3_register_interface$$$function_1_register_decorator );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_klass );
|
|
par_klass = 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_klass );
|
|
par_klass = 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( cryptography$utils$$$function_3_register_interface$$$function_1_register_decorator );
|
|
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_cryptography$utils$$$function_4_register_interface_if( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
struct Nuitka_CellObject *par_predicate = PyCell_NEW1( python_pars[ 0 ] );
|
|
struct Nuitka_CellObject *par_iface = PyCell_NEW1( python_pars[ 1 ] );
|
|
PyObject *var_register_decorator = NULL;
|
|
PyObject *tmp_return_value = NULL;
|
|
|
|
// Actual function code.
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
tmp_assign_source_1 = MAKE_FUNCTION_cryptography$utils$$$function_4_register_interface_if$$$function_1_register_decorator( );
|
|
|
|
((struct Nuitka_FunctionObject *)tmp_assign_source_1)->m_closure[0] = par_iface;
|
|
Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_1)->m_closure[0] );
|
|
((struct Nuitka_FunctionObject *)tmp_assign_source_1)->m_closure[1] = par_predicate;
|
|
Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_1)->m_closure[1] );
|
|
|
|
|
|
assert( var_register_decorator == NULL );
|
|
var_register_decorator = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
CHECK_OBJECT( var_register_decorator );
|
|
tmp_return_value = var_register_decorator;
|
|
Py_INCREF( tmp_return_value );
|
|
goto try_return_handler_1;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils$$$function_4_register_interface_if );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_predicate );
|
|
Py_DECREF( par_predicate );
|
|
par_predicate = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_iface );
|
|
Py_DECREF( par_iface );
|
|
par_iface = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_register_decorator );
|
|
var_register_decorator = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils$$$function_4_register_interface_if );
|
|
return NULL;
|
|
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
static PyObject *impl_cryptography$utils$$$function_4_register_interface_if$$$function_1_register_decorator( 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_klass = python_pars[ 0 ];
|
|
struct Nuitka_FrameObject *frame_f1b483cef5af2b2c7d02429f0b9ab788;
|
|
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;
|
|
PyObject *tmp_return_value = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_f1b483cef5af2b2c7d02429f0b9ab788 = 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_f1b483cef5af2b2c7d02429f0b9ab788, codeobj_f1b483cef5af2b2c7d02429f0b9ab788, module_cryptography$utils, sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_f1b483cef5af2b2c7d02429f0b9ab788 = cache_frame_f1b483cef5af2b2c7d02429f0b9ab788;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_f1b483cef5af2b2c7d02429f0b9ab788 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_f1b483cef5af2b2c7d02429f0b9ab788 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
int tmp_truth_name_1;
|
|
if ( PyCell_GET( self->m_closure[1] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "predicate" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 47;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_truth_name_1 = CHECK_IF_TRUE( PyCell_GET( self->m_closure[1] ) );
|
|
if ( tmp_truth_name_1 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 47;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
PyObject *tmp_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_cryptography$utils, (Nuitka_StringObject *)const_str_plain_verify_interface );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_verify_interface );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "verify_interface" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 48;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_name_1 = tmp_mvar_value_1;
|
|
if ( PyCell_GET( self->m_closure[0] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "iface" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 48;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_1 = PyCell_GET( self->m_closure[0] );
|
|
CHECK_OBJECT( par_klass );
|
|
tmp_args_element_name_2 = par_klass;
|
|
frame_f1b483cef5af2b2c7d02429f0b9ab788->m_frame.f_lineno = 48;
|
|
{
|
|
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 = 48;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
{
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_args_element_name_3;
|
|
if ( PyCell_GET( self->m_closure[0] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "iface" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 49;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_1 = PyCell_GET( self->m_closure[0] );
|
|
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_register );
|
|
if ( tmp_called_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 49;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_klass == 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", "klass" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 49;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_3 = par_klass;
|
|
frame_f1b483cef5af2b2c7d02429f0b9ab788->m_frame.f_lineno = 49;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_3 };
|
|
tmp_unused = CALL_FUNCTION_WITH_ARGS1( 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 = 49;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
if ( par_klass == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "klass" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 50;
|
|
type_description_1 = "occ";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_return_value = par_klass;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f1b483cef5af2b2c7d02429f0b9ab788 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f1b483cef5af2b2c7d02429f0b9ab788 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f1b483cef5af2b2c7d02429f0b9ab788 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_f1b483cef5af2b2c7d02429f0b9ab788, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_f1b483cef5af2b2c7d02429f0b9ab788->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_f1b483cef5af2b2c7d02429f0b9ab788, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_f1b483cef5af2b2c7d02429f0b9ab788,
|
|
type_description_1,
|
|
par_klass,
|
|
self->m_closure[1],
|
|
self->m_closure[0]
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_f1b483cef5af2b2c7d02429f0b9ab788 == cache_frame_f1b483cef5af2b2c7d02429f0b9ab788 )
|
|
{
|
|
Py_DECREF( frame_f1b483cef5af2b2c7d02429f0b9ab788 );
|
|
}
|
|
cache_frame_f1b483cef5af2b2c7d02429f0b9ab788 = NULL;
|
|
|
|
assertFrameObject( frame_f1b483cef5af2b2c7d02429f0b9ab788 );
|
|
|
|
// 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( cryptography$utils$$$function_4_register_interface_if$$$function_1_register_decorator );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_klass );
|
|
par_klass = 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_klass );
|
|
par_klass = 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( cryptography$utils$$$function_4_register_interface_if$$$function_1_register_decorator );
|
|
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_cryptography$utils$$$function_6_int_to_bytes( 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_integer = python_pars[ 0 ];
|
|
PyObject *par_length = python_pars[ 1 ];
|
|
struct Nuitka_FrameObject *frame_f2ef91930af51d38d7dca81bb7590120;
|
|
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_f2ef91930af51d38d7dca81bb7590120 = 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_f2ef91930af51d38d7dca81bb7590120, codeobj_f2ef91930af51d38d7dca81bb7590120, module_cryptography$utils, sizeof(void *)+sizeof(void *) );
|
|
frame_f2ef91930af51d38d7dca81bb7590120 = cache_frame_f2ef91930af51d38d7dca81bb7590120;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_f2ef91930af51d38d7dca81bb7590120 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_f2ef91930af51d38d7dca81bb7590120 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
int tmp_or_left_truth_1;
|
|
PyObject *tmp_or_left_value_1;
|
|
PyObject *tmp_or_right_value_1;
|
|
int tmp_or_left_truth_2;
|
|
PyObject *tmp_or_left_value_2;
|
|
PyObject *tmp_or_right_value_2;
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_left_name_2;
|
|
PyObject *tmp_called_instance_1;
|
|
PyObject *tmp_right_name_1;
|
|
PyObject *tmp_right_name_2;
|
|
PyObject *tmp_args_element_name_2;
|
|
CHECK_OBJECT( par_integer );
|
|
tmp_source_name_1 = par_integer;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_to_bytes );
|
|
if ( tmp_called_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 66;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_length == 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", "length" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_or_left_value_1 = par_length;
|
|
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_called_name_1 );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( tmp_or_left_truth_1 == 1 )
|
|
{
|
|
goto or_left_1;
|
|
}
|
|
else
|
|
{
|
|
goto or_right_1;
|
|
}
|
|
or_right_1:;
|
|
if ( par_integer == 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", "integer" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_instance_1 = par_integer;
|
|
frame_f2ef91930af51d38d7dca81bb7590120->m_frame.f_lineno = 67;
|
|
tmp_left_name_2 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_bit_length );
|
|
if ( tmp_left_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_right_name_1 = const_int_pos_7;
|
|
tmp_left_name_1 = BINARY_OPERATION_ADD( tmp_left_name_2, tmp_right_name_1 );
|
|
Py_DECREF( tmp_left_name_2 );
|
|
if ( tmp_left_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_right_name_2 = const_int_pos_8;
|
|
tmp_or_left_value_2 = BINARY_OPERATION_FLOORDIV( tmp_left_name_1, tmp_right_name_2 );
|
|
Py_DECREF( tmp_left_name_1 );
|
|
if ( tmp_or_left_value_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "oo";
|
|
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_called_name_1 );
|
|
Py_DECREF( tmp_or_left_value_2 );
|
|
|
|
exception_lineno = 67;
|
|
type_description_1 = "oo";
|
|
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 );
|
|
tmp_or_right_value_2 = const_int_pos_1;
|
|
Py_INCREF( tmp_or_right_value_2 );
|
|
tmp_or_right_value_1 = tmp_or_right_value_2;
|
|
goto or_end_2;
|
|
or_left_2:;
|
|
tmp_or_right_value_1 = tmp_or_left_value_2;
|
|
or_end_2:;
|
|
tmp_args_element_name_1 = tmp_or_right_value_1;
|
|
goto or_end_1;
|
|
or_left_1:;
|
|
Py_INCREF( tmp_or_left_value_1 );
|
|
tmp_args_element_name_1 = tmp_or_left_value_1;
|
|
or_end_1:;
|
|
tmp_args_element_name_2 = const_str_plain_big;
|
|
frame_f2ef91930af51d38d7dca81bb7590120->m_frame.f_lineno = 66;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 };
|
|
tmp_return_value = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_1 );
|
|
Py_DECREF( tmp_args_element_name_1 );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 66;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f2ef91930af51d38d7dca81bb7590120 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f2ef91930af51d38d7dca81bb7590120 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f2ef91930af51d38d7dca81bb7590120 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_f2ef91930af51d38d7dca81bb7590120, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_f2ef91930af51d38d7dca81bb7590120->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_f2ef91930af51d38d7dca81bb7590120, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_f2ef91930af51d38d7dca81bb7590120,
|
|
type_description_1,
|
|
par_integer,
|
|
par_length
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_f2ef91930af51d38d7dca81bb7590120 == cache_frame_f2ef91930af51d38d7dca81bb7590120 )
|
|
{
|
|
Py_DECREF( frame_f2ef91930af51d38d7dca81bb7590120 );
|
|
}
|
|
cache_frame_f2ef91930af51d38d7dca81bb7590120 = NULL;
|
|
|
|
assertFrameObject( frame_f2ef91930af51d38d7dca81bb7590120 );
|
|
|
|
// 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( cryptography$utils$$$function_6_int_to_bytes );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_integer );
|
|
par_integer = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_length );
|
|
par_length = 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_integer );
|
|
par_integer = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_length );
|
|
par_length = 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( cryptography$utils$$$function_6_int_to_bytes );
|
|
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_cryptography$utils$$$function_8_verify_interface( 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_iface = python_pars[ 0 ];
|
|
PyObject *par_klass = python_pars[ 1 ];
|
|
PyObject *var_method = NULL;
|
|
PyObject *var_sig = NULL;
|
|
PyObject *var_actual = NULL;
|
|
PyObject *tmp_for_loop_1__for_iterator = NULL;
|
|
PyObject *tmp_for_loop_1__iter_value = NULL;
|
|
struct Nuitka_FrameObject *frame_e413c426b5dd868d2b76f01b0169d044;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
int tmp_res;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
static struct Nuitka_FrameObject *cache_frame_e413c426b5dd868d2b76f01b0169d044 = NULL;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *exception_keeper_type_2;
|
|
PyObject *exception_keeper_value_2;
|
|
PyTracebackObject *exception_keeper_tb_2;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_e413c426b5dd868d2b76f01b0169d044, codeobj_e413c426b5dd868d2b76f01b0169d044, module_cryptography$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_e413c426b5dd868d2b76f01b0169d044 = cache_frame_e413c426b5dd868d2b76f01b0169d044;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_e413c426b5dd868d2b76f01b0169d044 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_e413c426b5dd868d2b76f01b0169d044 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_iter_arg_1;
|
|
PyObject *tmp_source_name_1;
|
|
CHECK_OBJECT( par_iface );
|
|
tmp_source_name_1 = par_iface;
|
|
tmp_iter_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain___abstractmethods__ );
|
|
if ( tmp_iter_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 90;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_assign_source_1 = MAKE_ITERATOR( tmp_iter_arg_1 );
|
|
Py_DECREF( tmp_iter_arg_1 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 90;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( tmp_for_loop_1__for_iterator == NULL );
|
|
tmp_for_loop_1__for_iterator = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
loop_start_1:;
|
|
{
|
|
PyObject *tmp_next_source_1;
|
|
PyObject *tmp_assign_source_2;
|
|
CHECK_OBJECT( tmp_for_loop_1__for_iterator );
|
|
tmp_next_source_1 = tmp_for_loop_1__for_iterator;
|
|
tmp_assign_source_2 = ITERATOR_NEXT( tmp_next_source_1 );
|
|
if ( tmp_assign_source_2 == NULL )
|
|
{
|
|
if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() )
|
|
{
|
|
|
|
goto loop_end_1;
|
|
}
|
|
else
|
|
{
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
type_description_1 = "ooooo";
|
|
exception_lineno = 90;
|
|
goto try_except_handler_2;
|
|
}
|
|
}
|
|
|
|
{
|
|
PyObject *old = tmp_for_loop_1__iter_value;
|
|
tmp_for_loop_1__iter_value = tmp_assign_source_2;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_3;
|
|
CHECK_OBJECT( tmp_for_loop_1__iter_value );
|
|
tmp_assign_source_3 = tmp_for_loop_1__iter_value;
|
|
{
|
|
PyObject *old = var_method;
|
|
var_method = tmp_assign_source_3;
|
|
Py_INCREF( var_method );
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_operand_name_1;
|
|
PyObject *tmp_source_name_2;
|
|
PyObject *tmp_attribute_name_1;
|
|
if ( par_klass == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "klass" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 91;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_source_name_2 = par_klass;
|
|
CHECK_OBJECT( var_method );
|
|
tmp_attribute_name_1 = var_method;
|
|
tmp_res = BUILTIN_HASATTR_BOOL( tmp_source_name_2, tmp_attribute_name_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 91;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
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 = 91;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
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_raise_type_1;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_mvar_value_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_source_name_3;
|
|
PyObject *tmp_args_element_name_2;
|
|
PyObject *tmp_args_element_name_3;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_InterfaceNotImplemented );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_InterfaceNotImplemented );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "InterfaceNotImplemented" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 92;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_called_name_1 = tmp_mvar_value_1;
|
|
tmp_source_name_3 = const_str_digest_d2b061b17cc9bdf30f09d31983c7cf7a;
|
|
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_format );
|
|
assert( !(tmp_called_name_2 == NULL) );
|
|
if ( par_klass == 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", "klass" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 93;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_args_element_name_2 = par_klass;
|
|
if ( var_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 = 93;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_args_element_name_3 = var_method;
|
|
frame_e413c426b5dd868d2b76f01b0169d044->m_frame.f_lineno = 93;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_2, tmp_args_element_name_3 };
|
|
tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS2( 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 );
|
|
|
|
|
|
exception_lineno = 93;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
frame_e413c426b5dd868d2b76f01b0169d044->m_frame.f_lineno = 92;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_1 );
|
|
if ( tmp_raise_type_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 92;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
exception_type = tmp_raise_type_1;
|
|
exception_lineno = 92;
|
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_2;
|
|
PyObject *tmp_isinstance_inst_1;
|
|
PyObject *tmp_isinstance_cls_1;
|
|
PyObject *tmp_getattr_target_1;
|
|
PyObject *tmp_getattr_attr_1;
|
|
PyObject *tmp_source_name_4;
|
|
PyObject *tmp_mvar_value_2;
|
|
if ( par_iface == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "iface" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 95;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_getattr_target_1 = par_iface;
|
|
if ( var_method == NULL )
|
|
{
|
|
|
|
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 = 95;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_getattr_attr_1 = var_method;
|
|
tmp_isinstance_inst_1 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, NULL );
|
|
if ( tmp_isinstance_inst_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 95;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_abc );
|
|
|
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
|
{
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_abc );
|
|
}
|
|
|
|
if ( tmp_mvar_value_2 == NULL )
|
|
{
|
|
Py_DECREF( tmp_isinstance_inst_1 );
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "abc" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 95;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_source_name_4 = tmp_mvar_value_2;
|
|
tmp_isinstance_cls_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_abstractproperty );
|
|
if ( tmp_isinstance_cls_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_isinstance_inst_1 );
|
|
|
|
exception_lineno = 95;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 );
|
|
Py_DECREF( tmp_isinstance_inst_1 );
|
|
Py_DECREF( tmp_isinstance_cls_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 95;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_2;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_2;
|
|
}
|
|
branch_yes_2:;
|
|
{
|
|
goto loop_start_1;
|
|
}
|
|
branch_no_2:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
PyObject *tmp_called_name_3;
|
|
PyObject *tmp_mvar_value_3;
|
|
PyObject *tmp_args_element_name_4;
|
|
PyObject *tmp_getattr_target_2;
|
|
PyObject *tmp_getattr_attr_2;
|
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_signature );
|
|
|
|
if (unlikely( tmp_mvar_value_3 == NULL ))
|
|
{
|
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_signature );
|
|
}
|
|
|
|
if ( tmp_mvar_value_3 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "signature" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 98;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_called_name_3 = tmp_mvar_value_3;
|
|
if ( par_iface == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "iface" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 98;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_getattr_target_2 = par_iface;
|
|
if ( var_method == NULL )
|
|
{
|
|
|
|
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 = 98;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_getattr_attr_2 = var_method;
|
|
tmp_args_element_name_4 = BUILTIN_GETATTR( tmp_getattr_target_2, tmp_getattr_attr_2, NULL );
|
|
if ( tmp_args_element_name_4 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 98;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
frame_e413c426b5dd868d2b76f01b0169d044->m_frame.f_lineno = 98;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_4 };
|
|
tmp_assign_source_4 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_4 );
|
|
if ( tmp_assign_source_4 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 98;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
{
|
|
PyObject *old = var_sig;
|
|
var_sig = tmp_assign_source_4;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
PyObject *tmp_called_name_4;
|
|
PyObject *tmp_mvar_value_4;
|
|
PyObject *tmp_args_element_name_5;
|
|
PyObject *tmp_getattr_target_3;
|
|
PyObject *tmp_getattr_attr_3;
|
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_signature );
|
|
|
|
if (unlikely( tmp_mvar_value_4 == NULL ))
|
|
{
|
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_signature );
|
|
}
|
|
|
|
if ( tmp_mvar_value_4 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "signature" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 99;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_called_name_4 = tmp_mvar_value_4;
|
|
if ( par_klass == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "klass" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 99;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_getattr_target_3 = par_klass;
|
|
if ( var_method == NULL )
|
|
{
|
|
|
|
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 = 99;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_getattr_attr_3 = var_method;
|
|
tmp_args_element_name_5 = BUILTIN_GETATTR( tmp_getattr_target_3, tmp_getattr_attr_3, NULL );
|
|
if ( tmp_args_element_name_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 99;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
frame_e413c426b5dd868d2b76f01b0169d044->m_frame.f_lineno = 99;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_5 };
|
|
tmp_assign_source_5 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_5 );
|
|
if ( tmp_assign_source_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 99;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
{
|
|
PyObject *old = var_actual;
|
|
var_actual = tmp_assign_source_5;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_3;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
if ( var_sig == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "sig" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 100;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_compexpr_left_1 = var_sig;
|
|
CHECK_OBJECT( var_actual );
|
|
tmp_compexpr_right_1 = var_actual;
|
|
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_1, tmp_compexpr_right_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 100;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_3;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_3;
|
|
}
|
|
branch_yes_3:;
|
|
{
|
|
PyObject *tmp_raise_type_2;
|
|
PyObject *tmp_called_name_5;
|
|
PyObject *tmp_mvar_value_5;
|
|
PyObject *tmp_args_element_name_6;
|
|
PyObject *tmp_called_name_6;
|
|
PyObject *tmp_source_name_5;
|
|
PyObject *tmp_args_element_name_7;
|
|
PyObject *tmp_args_element_name_8;
|
|
PyObject *tmp_args_element_name_9;
|
|
PyObject *tmp_args_element_name_10;
|
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_InterfaceNotImplemented );
|
|
|
|
if (unlikely( tmp_mvar_value_5 == NULL ))
|
|
{
|
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_InterfaceNotImplemented );
|
|
}
|
|
|
|
if ( tmp_mvar_value_5 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "InterfaceNotImplemented" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 101;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_called_name_5 = tmp_mvar_value_5;
|
|
tmp_source_name_5 = const_str_digest_37378246ddd57fc2739c52f3ca0022ec;
|
|
tmp_called_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_format );
|
|
assert( !(tmp_called_name_6 == NULL) );
|
|
if ( par_klass == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_6 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "klass" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 104;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_args_element_name_7 = par_klass;
|
|
if ( var_method == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_6 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "method" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 104;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_args_element_name_8 = var_method;
|
|
if ( var_sig == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_6 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "sig" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 104;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_args_element_name_9 = var_sig;
|
|
if ( var_actual == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_6 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "actual" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 104;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_args_element_name_10 = var_actual;
|
|
frame_e413c426b5dd868d2b76f01b0169d044->m_frame.f_lineno = 102;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_7, tmp_args_element_name_8, tmp_args_element_name_9, tmp_args_element_name_10 };
|
|
tmp_args_element_name_6 = CALL_FUNCTION_WITH_ARGS4( tmp_called_name_6, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_6 );
|
|
if ( tmp_args_element_name_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 102;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
frame_e413c426b5dd868d2b76f01b0169d044->m_frame.f_lineno = 101;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_6 };
|
|
tmp_raise_type_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_5, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_6 );
|
|
if ( tmp_raise_type_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 101;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
exception_type = tmp_raise_type_2;
|
|
exception_lineno = 101;
|
|
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
branch_no_3:;
|
|
}
|
|
if ( CONSIDER_THREADING() == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 90;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
goto loop_start_1;
|
|
loop_end_1:;
|
|
}
|
|
goto try_end_1;
|
|
// Exception handler code:
|
|
try_except_handler_2:;
|
|
exception_keeper_type_1 = exception_type;
|
|
exception_keeper_value_1 = exception_value;
|
|
exception_keeper_tb_1 = exception_tb;
|
|
exception_keeper_lineno_1 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_for_loop_1__iter_value );
|
|
tmp_for_loop_1__iter_value = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator );
|
|
Py_DECREF( tmp_for_loop_1__for_iterator );
|
|
tmp_for_loop_1__for_iterator = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_1:;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_e413c426b5dd868d2b76f01b0169d044 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_e413c426b5dd868d2b76f01b0169d044 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_e413c426b5dd868d2b76f01b0169d044, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_e413c426b5dd868d2b76f01b0169d044->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_e413c426b5dd868d2b76f01b0169d044, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_e413c426b5dd868d2b76f01b0169d044,
|
|
type_description_1,
|
|
par_iface,
|
|
par_klass,
|
|
var_method,
|
|
var_sig,
|
|
var_actual
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_e413c426b5dd868d2b76f01b0169d044 == cache_frame_e413c426b5dd868d2b76f01b0169d044 )
|
|
{
|
|
Py_DECREF( frame_e413c426b5dd868d2b76f01b0169d044 );
|
|
}
|
|
cache_frame_e413c426b5dd868d2b76f01b0169d044 = NULL;
|
|
|
|
assertFrameObject( frame_e413c426b5dd868d2b76f01b0169d044 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
{
|
|
Py_XDECREF( tmp_for_loop_1__iter_value );
|
|
tmp_for_loop_1__iter_value = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator );
|
|
Py_DECREF( tmp_for_loop_1__for_iterator );
|
|
tmp_for_loop_1__for_iterator = NULL;
|
|
|
|
}
|
|
{
|
|
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( cryptography$utils$$$function_8_verify_interface );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_iface );
|
|
par_iface = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_klass );
|
|
par_klass = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_method );
|
|
var_method = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_sig );
|
|
var_sig = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_actual );
|
|
var_actual = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_1:;
|
|
exception_keeper_type_2 = exception_type;
|
|
exception_keeper_value_2 = exception_value;
|
|
exception_keeper_tb_2 = exception_tb;
|
|
exception_keeper_lineno_2 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( par_iface );
|
|
par_iface = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_klass );
|
|
par_klass = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_method );
|
|
var_method = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_sig );
|
|
var_sig = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_actual );
|
|
var_actual = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_2;
|
|
exception_value = exception_keeper_value_2;
|
|
exception_tb = exception_keeper_tb_2;
|
|
exception_lineno = exception_keeper_lineno_2;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils$$$function_8_verify_interface );
|
|
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_cryptography$utils$$$function_9_bit_length( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_x = python_pars[ 0 ];
|
|
struct Nuitka_FrameObject *frame_9ce9cc3f6af403b361b0ef1327876045;
|
|
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_9ce9cc3f6af403b361b0ef1327876045 = 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_9ce9cc3f6af403b361b0ef1327876045, codeobj_9ce9cc3f6af403b361b0ef1327876045, module_cryptography$utils, sizeof(void *) );
|
|
frame_9ce9cc3f6af403b361b0ef1327876045 = cache_frame_9ce9cc3f6af403b361b0ef1327876045;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_9ce9cc3f6af403b361b0ef1327876045 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_9ce9cc3f6af403b361b0ef1327876045 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_called_instance_1;
|
|
CHECK_OBJECT( par_x );
|
|
tmp_called_instance_1 = par_x;
|
|
frame_9ce9cc3f6af403b361b0ef1327876045->m_frame.f_lineno = 112;
|
|
tmp_return_value = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_bit_length );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 112;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_9ce9cc3f6af403b361b0ef1327876045 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_9ce9cc3f6af403b361b0ef1327876045 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_9ce9cc3f6af403b361b0ef1327876045 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_9ce9cc3f6af403b361b0ef1327876045, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_9ce9cc3f6af403b361b0ef1327876045->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_9ce9cc3f6af403b361b0ef1327876045, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_9ce9cc3f6af403b361b0ef1327876045,
|
|
type_description_1,
|
|
par_x
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_9ce9cc3f6af403b361b0ef1327876045 == cache_frame_9ce9cc3f6af403b361b0ef1327876045 )
|
|
{
|
|
Py_DECREF( frame_9ce9cc3f6af403b361b0ef1327876045 );
|
|
}
|
|
cache_frame_9ce9cc3f6af403b361b0ef1327876045 = NULL;
|
|
|
|
assertFrameObject( frame_9ce9cc3f6af403b361b0ef1327876045 );
|
|
|
|
// 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( cryptography$utils$$$function_9_bit_length );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_x );
|
|
par_x = 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_x );
|
|
par_x = 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( cryptography$utils$$$function_9_bit_length );
|
|
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_cryptography$utils$$$function_10___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_value = python_pars[ 1 ];
|
|
PyObject *par_message = python_pars[ 2 ];
|
|
PyObject *par_warning_class = python_pars[ 3 ];
|
|
struct Nuitka_FrameObject *frame_8a7ea647a4af74d7ce0b1b23cf4fd605;
|
|
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_8a7ea647a4af74d7ce0b1b23cf4fd605 = 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_8a7ea647a4af74d7ce0b1b23cf4fd605, codeobj_8a7ea647a4af74d7ce0b1b23cf4fd605, module_cryptography$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_8a7ea647a4af74d7ce0b1b23cf4fd605 = cache_frame_8a7ea647a4af74d7ce0b1b23cf4fd605;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_8a7ea647a4af74d7ce0b1b23cf4fd605 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_8a7ea647a4af74d7ce0b1b23cf4fd605 ) == 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_value, tmp_assattr_name_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 117;
|
|
type_description_1 = "oooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_2;
|
|
PyObject *tmp_assattr_target_2;
|
|
if ( par_message == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "message" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 118;
|
|
type_description_1 = "oooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_name_2 = par_message;
|
|
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 = 118;
|
|
type_description_1 = "oooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_2 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_message, tmp_assattr_name_2 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 118;
|
|
type_description_1 = "oooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_3;
|
|
PyObject *tmp_assattr_target_3;
|
|
if ( par_warning_class == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "warning_class" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 119;
|
|
type_description_1 = "oooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_name_3 = par_warning_class;
|
|
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 = 119;
|
|
type_description_1 = "oooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_3 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain_warning_class, tmp_assattr_name_3 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 119;
|
|
type_description_1 = "oooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_8a7ea647a4af74d7ce0b1b23cf4fd605 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_8a7ea647a4af74d7ce0b1b23cf4fd605 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_8a7ea647a4af74d7ce0b1b23cf4fd605, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_8a7ea647a4af74d7ce0b1b23cf4fd605->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_8a7ea647a4af74d7ce0b1b23cf4fd605, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_8a7ea647a4af74d7ce0b1b23cf4fd605,
|
|
type_description_1,
|
|
par_self,
|
|
par_value,
|
|
par_message,
|
|
par_warning_class
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_8a7ea647a4af74d7ce0b1b23cf4fd605 == cache_frame_8a7ea647a4af74d7ce0b1b23cf4fd605 )
|
|
{
|
|
Py_DECREF( frame_8a7ea647a4af74d7ce0b1b23cf4fd605 );
|
|
}
|
|
cache_frame_8a7ea647a4af74d7ce0b1b23cf4fd605 = NULL;
|
|
|
|
assertFrameObject( frame_8a7ea647a4af74d7ce0b1b23cf4fd605 );
|
|
|
|
// 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( cryptography$utils$$$function_10___init__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_value );
|
|
par_value = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_message );
|
|
par_message = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_warning_class );
|
|
par_warning_class = 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;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_message );
|
|
par_message = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_warning_class );
|
|
par_warning_class = 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( cryptography$utils$$$function_10___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_cryptography$utils$$$function_11___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_module = python_pars[ 1 ];
|
|
struct Nuitka_FrameObject *frame_24f77e4979d6f47e45953536eb307b21;
|
|
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_24f77e4979d6f47e45953536eb307b21 = 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_24f77e4979d6f47e45953536eb307b21, codeobj_24f77e4979d6f47e45953536eb307b21, module_cryptography$utils, sizeof(void *)+sizeof(void *) );
|
|
frame_24f77e4979d6f47e45953536eb307b21 = cache_frame_24f77e4979d6f47e45953536eb307b21;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_24f77e4979d6f47e45953536eb307b21 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_24f77e4979d6f47e45953536eb307b21 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_ass_subvalue_1;
|
|
PyObject *tmp_ass_subscribed_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_ass_subscript_1;
|
|
CHECK_OBJECT( par_module );
|
|
tmp_ass_subvalue_1 = par_module;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE_DICT_SLOT( tmp_source_name_1 );
|
|
if ( tmp_ass_subscribed_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 124;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_ass_subscript_1 = const_str_plain__module;
|
|
tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1 );
|
|
Py_DECREF( tmp_ass_subscribed_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 124;
|
|
type_description_1 = "oo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_24f77e4979d6f47e45953536eb307b21 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_24f77e4979d6f47e45953536eb307b21 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_24f77e4979d6f47e45953536eb307b21, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_24f77e4979d6f47e45953536eb307b21->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_24f77e4979d6f47e45953536eb307b21, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_24f77e4979d6f47e45953536eb307b21,
|
|
type_description_1,
|
|
par_self,
|
|
par_module
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_24f77e4979d6f47e45953536eb307b21 == cache_frame_24f77e4979d6f47e45953536eb307b21 )
|
|
{
|
|
Py_DECREF( frame_24f77e4979d6f47e45953536eb307b21 );
|
|
}
|
|
cache_frame_24f77e4979d6f47e45953536eb307b21 = NULL;
|
|
|
|
assertFrameObject( frame_24f77e4979d6f47e45953536eb307b21 );
|
|
|
|
// 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( cryptography$utils$$$function_11___init__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_module );
|
|
par_module = 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_module );
|
|
par_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 function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils$$$function_11___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_cryptography$utils$$$function_12___getattr__( 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_attr = python_pars[ 1 ];
|
|
PyObject *var_obj = NULL;
|
|
struct Nuitka_FrameObject *frame_2d7ee2996200ce3c49a5a86cd7c632dd;
|
|
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;
|
|
static struct Nuitka_FrameObject *cache_frame_2d7ee2996200ce3c49a5a86cd7c632dd = 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_2d7ee2996200ce3c49a5a86cd7c632dd, codeobj_2d7ee2996200ce3c49a5a86cd7c632dd, module_cryptography$utils, sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_2d7ee2996200ce3c49a5a86cd7c632dd = cache_frame_2d7ee2996200ce3c49a5a86cd7c632dd;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_2d7ee2996200ce3c49a5a86cd7c632dd );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_2d7ee2996200ce3c49a5a86cd7c632dd ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_getattr_target_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_getattr_attr_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_getattr_target_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__module );
|
|
if ( tmp_getattr_target_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 127;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_attr == NULL )
|
|
{
|
|
Py_DECREF( tmp_getattr_target_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attr" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 127;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_getattr_attr_1 = par_attr;
|
|
tmp_assign_source_1 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, NULL );
|
|
Py_DECREF( tmp_getattr_target_1 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 127;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_obj == NULL );
|
|
var_obj = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_isinstance_inst_1;
|
|
PyObject *tmp_isinstance_cls_1;
|
|
PyObject *tmp_mvar_value_1;
|
|
CHECK_OBJECT( var_obj );
|
|
tmp_isinstance_inst_1 = var_obj;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain__DeprecatedValue );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__DeprecatedValue );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_DeprecatedValue" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 128;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_isinstance_cls_1 = tmp_mvar_value_1;
|
|
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 = 128;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_2;
|
|
PyObject *tmp_mvar_value_2;
|
|
PyObject *tmp_args_name_1;
|
|
PyObject *tmp_tuple_element_1;
|
|
PyObject *tmp_source_name_3;
|
|
PyObject *tmp_source_name_4;
|
|
PyObject *tmp_kw_name_1;
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_warnings );
|
|
|
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
|
{
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_warnings );
|
|
}
|
|
|
|
if ( tmp_mvar_value_2 == 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 = 129;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_2 = tmp_mvar_value_2;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_warn );
|
|
if ( tmp_called_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 129;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( var_obj == 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", "obj" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 129;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_3 = var_obj;
|
|
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_message );
|
|
if ( tmp_tuple_element_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
|
|
exception_lineno = 129;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_args_name_1 = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_1 );
|
|
if ( var_obj == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_1 );
|
|
Py_DECREF( tmp_args_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "obj" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 129;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_4 = var_obj;
|
|
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_warning_class );
|
|
if ( tmp_tuple_element_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
Py_DECREF( tmp_args_name_1 );
|
|
|
|
exception_lineno = 129;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_1 );
|
|
tmp_kw_name_1 = PyDict_Copy( const_dict_f154c9a58c9419d7e391901d7b7fe49e );
|
|
frame_2d7ee2996200ce3c49a5a86cd7c632dd->m_frame.f_lineno = 129;
|
|
tmp_unused = 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 );
|
|
Py_DECREF( tmp_kw_name_1 );
|
|
if ( tmp_unused == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 129;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
PyObject *tmp_source_name_5;
|
|
if ( var_obj == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "obj" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 130;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_5 = var_obj;
|
|
tmp_assign_source_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_value );
|
|
if ( tmp_assign_source_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 130;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
{
|
|
PyObject *old = var_obj;
|
|
var_obj = tmp_assign_source_2;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_2d7ee2996200ce3c49a5a86cd7c632dd );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_2d7ee2996200ce3c49a5a86cd7c632dd );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_2d7ee2996200ce3c49a5a86cd7c632dd, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_2d7ee2996200ce3c49a5a86cd7c632dd->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_2d7ee2996200ce3c49a5a86cd7c632dd, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_2d7ee2996200ce3c49a5a86cd7c632dd,
|
|
type_description_1,
|
|
par_self,
|
|
par_attr,
|
|
var_obj
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_2d7ee2996200ce3c49a5a86cd7c632dd == cache_frame_2d7ee2996200ce3c49a5a86cd7c632dd )
|
|
{
|
|
Py_DECREF( frame_2d7ee2996200ce3c49a5a86cd7c632dd );
|
|
}
|
|
cache_frame_2d7ee2996200ce3c49a5a86cd7c632dd = NULL;
|
|
|
|
assertFrameObject( frame_2d7ee2996200ce3c49a5a86cd7c632dd );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
{
|
|
CHECK_OBJECT( var_obj );
|
|
tmp_return_value = var_obj;
|
|
Py_INCREF( tmp_return_value );
|
|
goto try_return_handler_1;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils$$$function_12___getattr__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_attr );
|
|
par_attr = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_obj );
|
|
var_obj = 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_attr );
|
|
par_attr = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_obj );
|
|
var_obj = 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( cryptography$utils$$$function_12___getattr__ );
|
|
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_cryptography$utils$$$function_13___setattr__( 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_attr = python_pars[ 1 ];
|
|
PyObject *par_value = python_pars[ 2 ];
|
|
struct Nuitka_FrameObject *frame_f23d556e7059bc16501cd75e54975d59;
|
|
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;
|
|
static struct Nuitka_FrameObject *cache_frame_f23d556e7059bc16501cd75e54975d59 = 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_f23d556e7059bc16501cd75e54975d59, codeobj_f23d556e7059bc16501cd75e54975d59, module_cryptography$utils, sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_f23d556e7059bc16501cd75e54975d59 = cache_frame_f23d556e7059bc16501cd75e54975d59;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_f23d556e7059bc16501cd75e54975d59 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_f23d556e7059bc16501cd75e54975d59 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_setattr_target_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_setattr_attr_1;
|
|
PyObject *tmp_setattr_value_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_setattr_target_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__module );
|
|
if ( tmp_setattr_target_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 134;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_attr == NULL )
|
|
{
|
|
Py_DECREF( tmp_setattr_target_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attr" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 134;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_setattr_attr_1 = par_attr;
|
|
if ( par_value == NULL )
|
|
{
|
|
Py_DECREF( tmp_setattr_target_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 134;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_setattr_value_1 = par_value;
|
|
tmp_unused = BUILTIN_SETATTR( tmp_setattr_target_1, tmp_setattr_attr_1, tmp_setattr_value_1 );
|
|
Py_DECREF( tmp_setattr_target_1 );
|
|
if ( tmp_unused == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 134;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f23d556e7059bc16501cd75e54975d59 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f23d556e7059bc16501cd75e54975d59 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_f23d556e7059bc16501cd75e54975d59, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_f23d556e7059bc16501cd75e54975d59->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_f23d556e7059bc16501cd75e54975d59, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_f23d556e7059bc16501cd75e54975d59,
|
|
type_description_1,
|
|
par_self,
|
|
par_attr,
|
|
par_value
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_f23d556e7059bc16501cd75e54975d59 == cache_frame_f23d556e7059bc16501cd75e54975d59 )
|
|
{
|
|
Py_DECREF( frame_f23d556e7059bc16501cd75e54975d59 );
|
|
}
|
|
cache_frame_f23d556e7059bc16501cd75e54975d59 = NULL;
|
|
|
|
assertFrameObject( frame_f23d556e7059bc16501cd75e54975d59 );
|
|
|
|
// 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( cryptography$utils$$$function_13___setattr__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_attr );
|
|
par_attr = 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_attr );
|
|
par_attr = 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( cryptography$utils$$$function_13___setattr__ );
|
|
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_cryptography$utils$$$function_14___delattr__( 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_attr = python_pars[ 1 ];
|
|
PyObject *var_obj = NULL;
|
|
struct Nuitka_FrameObject *frame_9fce0ee10c63f7b6db78b05685e71def;
|
|
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;
|
|
static struct Nuitka_FrameObject *cache_frame_9fce0ee10c63f7b6db78b05685e71def = 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_9fce0ee10c63f7b6db78b05685e71def, codeobj_9fce0ee10c63f7b6db78b05685e71def, module_cryptography$utils, sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_9fce0ee10c63f7b6db78b05685e71def = cache_frame_9fce0ee10c63f7b6db78b05685e71def;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_9fce0ee10c63f7b6db78b05685e71def );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_9fce0ee10c63f7b6db78b05685e71def ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_getattr_target_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_getattr_attr_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_getattr_target_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__module );
|
|
if ( tmp_getattr_target_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 137;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_attr == NULL )
|
|
{
|
|
Py_DECREF( tmp_getattr_target_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attr" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 137;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_getattr_attr_1 = par_attr;
|
|
tmp_assign_source_1 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, NULL );
|
|
Py_DECREF( tmp_getattr_target_1 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 137;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_obj == NULL );
|
|
var_obj = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_isinstance_inst_1;
|
|
PyObject *tmp_isinstance_cls_1;
|
|
PyObject *tmp_mvar_value_1;
|
|
CHECK_OBJECT( var_obj );
|
|
tmp_isinstance_inst_1 = var_obj;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain__DeprecatedValue );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__DeprecatedValue );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_DeprecatedValue" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 138;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_isinstance_cls_1 = tmp_mvar_value_1;
|
|
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 = 138;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_2;
|
|
PyObject *tmp_mvar_value_2;
|
|
PyObject *tmp_args_name_1;
|
|
PyObject *tmp_tuple_element_1;
|
|
PyObject *tmp_source_name_3;
|
|
PyObject *tmp_source_name_4;
|
|
PyObject *tmp_kw_name_1;
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_warnings );
|
|
|
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
|
{
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_warnings );
|
|
}
|
|
|
|
if ( tmp_mvar_value_2 == 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 = 139;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_2 = tmp_mvar_value_2;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_warn );
|
|
if ( tmp_called_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 139;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( var_obj == 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", "obj" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 139;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_3 = var_obj;
|
|
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_message );
|
|
if ( tmp_tuple_element_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
|
|
exception_lineno = 139;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_args_name_1 = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_1 );
|
|
if ( var_obj == NULL )
|
|
{
|
|
Py_DECREF( tmp_called_name_1 );
|
|
Py_DECREF( tmp_args_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "obj" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 139;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_4 = var_obj;
|
|
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_warning_class );
|
|
if ( tmp_tuple_element_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
Py_DECREF( tmp_args_name_1 );
|
|
|
|
exception_lineno = 139;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_1 );
|
|
tmp_kw_name_1 = PyDict_Copy( const_dict_f154c9a58c9419d7e391901d7b7fe49e );
|
|
frame_9fce0ee10c63f7b6db78b05685e71def->m_frame.f_lineno = 139;
|
|
tmp_unused = 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 );
|
|
Py_DECREF( tmp_kw_name_1 );
|
|
if ( tmp_unused == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 139;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_args_element_name_1;
|
|
PyObject *tmp_source_name_5;
|
|
PyObject *tmp_args_element_name_2;
|
|
tmp_called_name_2 = LOOKUP_BUILTIN( const_str_plain_delattr );
|
|
assert( tmp_called_name_2 != NULL );
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 141;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_5 = par_self;
|
|
tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain__module );
|
|
if ( tmp_args_element_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 141;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_attr == NULL )
|
|
{
|
|
Py_DECREF( tmp_args_element_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "attr" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 141;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_2 = par_attr;
|
|
frame_9fce0ee10c63f7b6db78b05685e71def->m_frame.f_lineno = 141;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 };
|
|
tmp_unused = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_2, call_args );
|
|
}
|
|
|
|
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 = 141;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_9fce0ee10c63f7b6db78b05685e71def );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_9fce0ee10c63f7b6db78b05685e71def );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_9fce0ee10c63f7b6db78b05685e71def, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_9fce0ee10c63f7b6db78b05685e71def->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_9fce0ee10c63f7b6db78b05685e71def, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_9fce0ee10c63f7b6db78b05685e71def,
|
|
type_description_1,
|
|
par_self,
|
|
par_attr,
|
|
var_obj
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_9fce0ee10c63f7b6db78b05685e71def == cache_frame_9fce0ee10c63f7b6db78b05685e71def )
|
|
{
|
|
Py_DECREF( frame_9fce0ee10c63f7b6db78b05685e71def );
|
|
}
|
|
cache_frame_9fce0ee10c63f7b6db78b05685e71def = NULL;
|
|
|
|
assertFrameObject( frame_9fce0ee10c63f7b6db78b05685e71def );
|
|
|
|
// 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( cryptography$utils$$$function_14___delattr__ );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_attr );
|
|
par_attr = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_obj );
|
|
var_obj = 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_attr );
|
|
par_attr = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_obj );
|
|
var_obj = 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( cryptography$utils$$$function_14___delattr__ );
|
|
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_cryptography$utils$$$function_15___dir__( 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_94baf283693c1756947b617cb6291c5c;
|
|
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_94baf283693c1756947b617cb6291c5c = 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_94baf283693c1756947b617cb6291c5c, codeobj_94baf283693c1756947b617cb6291c5c, module_cryptography$utils, sizeof(void *) );
|
|
frame_94baf283693c1756947b617cb6291c5c = cache_frame_94baf283693c1756947b617cb6291c5c;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_94baf283693c1756947b617cb6291c5c );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_94baf283693c1756947b617cb6291c5c ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_right_name_1;
|
|
PyObject *tmp_dir_arg_1;
|
|
PyObject *tmp_source_name_1;
|
|
tmp_left_name_1 = LIST_COPY( const_list_str_plain__module_list );
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_dir_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__module );
|
|
if ( tmp_dir_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_left_name_1 );
|
|
|
|
exception_lineno = 144;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_right_name_1 = PyObject_Dir( tmp_dir_arg_1 );
|
|
Py_DECREF( tmp_dir_arg_1 );
|
|
if ( tmp_right_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_left_name_1 );
|
|
|
|
exception_lineno = 144;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_return_value = 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_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 144;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_94baf283693c1756947b617cb6291c5c );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_94baf283693c1756947b617cb6291c5c );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_94baf283693c1756947b617cb6291c5c );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_94baf283693c1756947b617cb6291c5c, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_94baf283693c1756947b617cb6291c5c->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_94baf283693c1756947b617cb6291c5c, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_94baf283693c1756947b617cb6291c5c,
|
|
type_description_1,
|
|
par_self
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_94baf283693c1756947b617cb6291c5c == cache_frame_94baf283693c1756947b617cb6291c5c )
|
|
{
|
|
Py_DECREF( frame_94baf283693c1756947b617cb6291c5c );
|
|
}
|
|
cache_frame_94baf283693c1756947b617cb6291c5c = NULL;
|
|
|
|
assertFrameObject( frame_94baf283693c1756947b617cb6291c5c );
|
|
|
|
// 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( cryptography$utils$$$function_15___dir__ );
|
|
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( cryptography$utils$$$function_15___dir__ );
|
|
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_cryptography$utils$$$function_16_deprecated( 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_value = python_pars[ 0 ];
|
|
PyObject *par_module_name = python_pars[ 1 ];
|
|
PyObject *par_message = python_pars[ 2 ];
|
|
PyObject *par_warning_class = python_pars[ 3 ];
|
|
PyObject *var_module = NULL;
|
|
struct Nuitka_FrameObject *frame_29b05ad771331362b270765ccd6078f8;
|
|
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;
|
|
bool tmp_result;
|
|
PyObject *tmp_return_value = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_29b05ad771331362b270765ccd6078f8 = 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_29b05ad771331362b270765ccd6078f8, codeobj_29b05ad771331362b270765ccd6078f8, module_cryptography$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_29b05ad771331362b270765ccd6078f8 = cache_frame_29b05ad771331362b270765ccd6078f8;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_29b05ad771331362b270765ccd6078f8 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_29b05ad771331362b270765ccd6078f8 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_mvar_value_1;
|
|
PyObject *tmp_subscript_name_1;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_sys );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_sys );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == 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 = 148;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_1 = tmp_mvar_value_1;
|
|
tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_modules );
|
|
if ( tmp_subscribed_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 148;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_module_name == NULL )
|
|
{
|
|
Py_DECREF( tmp_subscribed_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "module_name" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 148;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_subscript_name_1 = par_module_name;
|
|
tmp_assign_source_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 );
|
|
Py_DECREF( tmp_subscribed_name_1 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 148;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_module == NULL );
|
|
var_module = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_operand_name_1;
|
|
PyObject *tmp_isinstance_inst_1;
|
|
PyObject *tmp_isinstance_cls_1;
|
|
PyObject *tmp_mvar_value_2;
|
|
CHECK_OBJECT( var_module );
|
|
tmp_isinstance_inst_1 = var_module;
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain__ModuleWithDeprecations );
|
|
|
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
|
{
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__ModuleWithDeprecations );
|
|
}
|
|
|
|
if ( tmp_mvar_value_2 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_ModuleWithDeprecations" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 149;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_isinstance_cls_1 = tmp_mvar_value_2;
|
|
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 = 149;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
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 = 149;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
PyObject *tmp_ass_subvalue_1;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_mvar_value_3;
|
|
PyObject *tmp_args_element_name_1;
|
|
PyObject *tmp_ass_subscribed_1;
|
|
PyObject *tmp_source_name_2;
|
|
PyObject *tmp_mvar_value_4;
|
|
PyObject *tmp_ass_subscript_1;
|
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain__ModuleWithDeprecations );
|
|
|
|
if (unlikely( tmp_mvar_value_3 == NULL ))
|
|
{
|
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__ModuleWithDeprecations );
|
|
}
|
|
|
|
if ( tmp_mvar_value_3 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_ModuleWithDeprecations" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 150;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_name_1 = tmp_mvar_value_3;
|
|
if ( var_module == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "module" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 150;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_1 = var_module;
|
|
frame_29b05ad771331362b270765ccd6078f8->m_frame.f_lineno = 150;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_ass_subvalue_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
if ( tmp_ass_subvalue_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 150;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_sys );
|
|
|
|
if (unlikely( tmp_mvar_value_4 == NULL ))
|
|
{
|
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_sys );
|
|
}
|
|
|
|
if ( tmp_mvar_value_4 == NULL )
|
|
{
|
|
Py_DECREF( tmp_ass_subvalue_1 );
|
|
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 = 150;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_2 = tmp_mvar_value_4;
|
|
tmp_ass_subscribed_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_modules );
|
|
if ( tmp_ass_subscribed_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_ass_subvalue_1 );
|
|
|
|
exception_lineno = 150;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_module_name == NULL )
|
|
{
|
|
Py_DECREF( tmp_ass_subvalue_1 );
|
|
Py_DECREF( tmp_ass_subscribed_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "module_name" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 150;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_ass_subscript_1 = par_module_name;
|
|
tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1 );
|
|
Py_DECREF( tmp_ass_subscribed_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 = 150;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_mvar_value_5;
|
|
PyObject *tmp_args_element_name_2;
|
|
PyObject *tmp_args_element_name_3;
|
|
PyObject *tmp_args_element_name_4;
|
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain__DeprecatedValue );
|
|
|
|
if (unlikely( tmp_mvar_value_5 == NULL ))
|
|
{
|
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__DeprecatedValue );
|
|
}
|
|
|
|
if ( tmp_mvar_value_5 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_DeprecatedValue" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 151;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_name_2 = tmp_mvar_value_5;
|
|
if ( par_value == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "value" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 151;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_2 = par_value;
|
|
if ( par_message == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "message" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 151;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_3 = par_message;
|
|
if ( par_warning_class == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "warning_class" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 151;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_4 = par_warning_class;
|
|
frame_29b05ad771331362b270765ccd6078f8->m_frame.f_lineno = 151;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_2, tmp_args_element_name_3, tmp_args_element_name_4 };
|
|
tmp_return_value = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_2, call_args );
|
|
}
|
|
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 151;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_29b05ad771331362b270765ccd6078f8 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_29b05ad771331362b270765ccd6078f8 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_29b05ad771331362b270765ccd6078f8 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_29b05ad771331362b270765ccd6078f8, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_29b05ad771331362b270765ccd6078f8->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_29b05ad771331362b270765ccd6078f8, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_29b05ad771331362b270765ccd6078f8,
|
|
type_description_1,
|
|
par_value,
|
|
par_module_name,
|
|
par_message,
|
|
par_warning_class,
|
|
var_module
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_29b05ad771331362b270765ccd6078f8 == cache_frame_29b05ad771331362b270765ccd6078f8 )
|
|
{
|
|
Py_DECREF( frame_29b05ad771331362b270765ccd6078f8 );
|
|
}
|
|
cache_frame_29b05ad771331362b270765ccd6078f8 = NULL;
|
|
|
|
assertFrameObject( frame_29b05ad771331362b270765ccd6078f8 );
|
|
|
|
// 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( cryptography$utils$$$function_16_deprecated );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_value );
|
|
par_value = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_module_name );
|
|
par_module_name = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_message );
|
|
par_message = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_warning_class );
|
|
par_warning_class = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_module );
|
|
var_module = 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_value );
|
|
par_value = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_module_name );
|
|
par_module_name = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_message );
|
|
par_message = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_warning_class );
|
|
par_warning_class = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_module );
|
|
var_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 function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils$$$function_16_deprecated );
|
|
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_cryptography$utils$$$function_17_cached_property( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
struct Nuitka_CellObject *par_func = PyCell_NEW1( python_pars[ 0 ] );
|
|
struct Nuitka_CellObject *var_cached_name = PyCell_EMPTY();
|
|
struct Nuitka_CellObject *var_sentinel = PyCell_EMPTY();
|
|
PyObject *var_inner = NULL;
|
|
struct Nuitka_FrameObject *frame_8b2ddd1838998fca0adecac574fd322a;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
PyObject *tmp_return_value = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_8b2ddd1838998fca0adecac574fd322a = 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_8b2ddd1838998fca0adecac574fd322a, codeobj_8b2ddd1838998fca0adecac574fd322a, module_cryptography$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_8b2ddd1838998fca0adecac574fd322a = cache_frame_8b2ddd1838998fca0adecac574fd322a;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_8b2ddd1838998fca0adecac574fd322a );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_8b2ddd1838998fca0adecac574fd322a ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_called_instance_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
tmp_called_instance_1 = const_str_digest_c19b561c21fe8f0ed667490b9edc9eb8;
|
|
CHECK_OBJECT( PyCell_GET( par_func ) );
|
|
tmp_args_element_name_1 = PyCell_GET( par_func );
|
|
frame_8b2ddd1838998fca0adecac574fd322a->m_frame.f_lineno = 155;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_assign_source_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_1, const_str_plain_format, call_args );
|
|
}
|
|
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 155;
|
|
type_description_1 = "ccco";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( PyCell_GET( var_cached_name ) == NULL );
|
|
PyCell_SET( var_cached_name, tmp_assign_source_1 );
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
PyObject *tmp_called_name_1;
|
|
tmp_called_name_1 = (PyObject *)&PyBaseObject_Type;
|
|
frame_8b2ddd1838998fca0adecac574fd322a->m_frame.f_lineno = 156;
|
|
tmp_assign_source_2 = CALL_FUNCTION_NO_ARGS( tmp_called_name_1 );
|
|
if ( tmp_assign_source_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "ccco";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( PyCell_GET( var_sentinel ) == NULL );
|
|
PyCell_SET( var_sentinel, tmp_assign_source_2 );
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_3;
|
|
tmp_assign_source_3 = MAKE_FUNCTION_cryptography$utils$$$function_17_cached_property$$$function_1_inner( );
|
|
|
|
((struct Nuitka_FunctionObject *)tmp_assign_source_3)->m_closure[0] = var_cached_name;
|
|
Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_3)->m_closure[0] );
|
|
((struct Nuitka_FunctionObject *)tmp_assign_source_3)->m_closure[1] = par_func;
|
|
Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_3)->m_closure[1] );
|
|
((struct Nuitka_FunctionObject *)tmp_assign_source_3)->m_closure[2] = var_sentinel;
|
|
Py_INCREF( ((struct Nuitka_FunctionObject *)tmp_assign_source_3)->m_closure[2] );
|
|
|
|
|
|
assert( var_inner == NULL );
|
|
var_inner = tmp_assign_source_3;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_args_element_name_2;
|
|
tmp_called_name_2 = (PyObject *)&PyProperty_Type;
|
|
CHECK_OBJECT( var_inner );
|
|
tmp_args_element_name_2 = var_inner;
|
|
frame_8b2ddd1838998fca0adecac574fd322a->m_frame.f_lineno = 165;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_2 };
|
|
tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args );
|
|
}
|
|
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 165;
|
|
type_description_1 = "ccco";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_8b2ddd1838998fca0adecac574fd322a );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_8b2ddd1838998fca0adecac574fd322a );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_8b2ddd1838998fca0adecac574fd322a );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_8b2ddd1838998fca0adecac574fd322a, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_8b2ddd1838998fca0adecac574fd322a->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_8b2ddd1838998fca0adecac574fd322a, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_8b2ddd1838998fca0adecac574fd322a,
|
|
type_description_1,
|
|
par_func,
|
|
var_cached_name,
|
|
var_sentinel,
|
|
var_inner
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_8b2ddd1838998fca0adecac574fd322a == cache_frame_8b2ddd1838998fca0adecac574fd322a )
|
|
{
|
|
Py_DECREF( frame_8b2ddd1838998fca0adecac574fd322a );
|
|
}
|
|
cache_frame_8b2ddd1838998fca0adecac574fd322a = NULL;
|
|
|
|
assertFrameObject( frame_8b2ddd1838998fca0adecac574fd322a );
|
|
|
|
// 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( cryptography$utils$$$function_17_cached_property );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_func );
|
|
Py_DECREF( par_func );
|
|
par_func = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)var_cached_name );
|
|
Py_DECREF( var_cached_name );
|
|
var_cached_name = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)var_sentinel );
|
|
Py_DECREF( var_sentinel );
|
|
var_sentinel = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_inner );
|
|
var_inner = 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;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_func );
|
|
Py_DECREF( par_func );
|
|
par_func = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)var_cached_name );
|
|
Py_DECREF( var_cached_name );
|
|
var_cached_name = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)var_sentinel );
|
|
Py_DECREF( var_sentinel );
|
|
var_sentinel = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_inner );
|
|
var_inner = 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( cryptography$utils$$$function_17_cached_property );
|
|
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_cryptography$utils$$$function_17_cached_property$$$function_1_inner( 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_instance = python_pars[ 0 ];
|
|
PyObject *var_cache = NULL;
|
|
PyObject *var_result = NULL;
|
|
struct Nuitka_FrameObject *frame_c1079d473fbf278b11d5b55fb8527333;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
PyObject *tmp_return_value = NULL;
|
|
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
|
|
static struct Nuitka_FrameObject *cache_frame_c1079d473fbf278b11d5b55fb8527333 = 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_c1079d473fbf278b11d5b55fb8527333, codeobj_c1079d473fbf278b11d5b55fb8527333, module_cryptography$utils, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_c1079d473fbf278b11d5b55fb8527333 = cache_frame_c1079d473fbf278b11d5b55fb8527333;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_c1079d473fbf278b11d5b55fb8527333 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_c1079d473fbf278b11d5b55fb8527333 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_getattr_target_1;
|
|
PyObject *tmp_getattr_attr_1;
|
|
PyObject *tmp_getattr_default_1;
|
|
CHECK_OBJECT( par_instance );
|
|
tmp_getattr_target_1 = par_instance;
|
|
if ( PyCell_GET( self->m_closure[0] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "cached_name" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 159;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_getattr_attr_1 = PyCell_GET( self->m_closure[0] );
|
|
if ( PyCell_GET( self->m_closure[2] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "sentinel" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 159;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_getattr_default_1 = PyCell_GET( self->m_closure[2] );
|
|
tmp_assign_source_1 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 159;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_cache == NULL );
|
|
var_cache = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
CHECK_OBJECT( var_cache );
|
|
tmp_compexpr_left_1 = var_cache;
|
|
if ( PyCell_GET( self->m_closure[2] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "sentinel" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 160;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_right_1 = PyCell_GET( self->m_closure[2] );
|
|
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:;
|
|
{
|
|
if ( var_cache == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cache" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 161;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_return_value = var_cache;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
if ( PyCell_GET( self->m_closure[1] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "func" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 162;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_name_1 = PyCell_GET( self->m_closure[1] );
|
|
if ( par_instance == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "instance" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 162;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_1 = par_instance;
|
|
frame_c1079d473fbf278b11d5b55fb8527333->m_frame.f_lineno = 162;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
if ( tmp_assign_source_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 162;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_result == NULL );
|
|
var_result = tmp_assign_source_2;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_setattr_target_1;
|
|
PyObject *tmp_setattr_attr_1;
|
|
PyObject *tmp_setattr_value_1;
|
|
if ( par_instance == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "instance" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 163;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_setattr_target_1 = par_instance;
|
|
if ( PyCell_GET( self->m_closure[0] ) == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "free variable '%s' referenced before assignment in enclosing scope", "cached_name" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 163;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_setattr_attr_1 = PyCell_GET( self->m_closure[0] );
|
|
CHECK_OBJECT( var_result );
|
|
tmp_setattr_value_1 = var_result;
|
|
tmp_unused = BUILTIN_SETATTR( tmp_setattr_target_1, tmp_setattr_attr_1, tmp_setattr_value_1 );
|
|
if ( tmp_unused == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 163;
|
|
type_description_1 = "oooccc";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c1079d473fbf278b11d5b55fb8527333 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c1079d473fbf278b11d5b55fb8527333 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c1079d473fbf278b11d5b55fb8527333 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_c1079d473fbf278b11d5b55fb8527333, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_c1079d473fbf278b11d5b55fb8527333->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_c1079d473fbf278b11d5b55fb8527333, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_c1079d473fbf278b11d5b55fb8527333,
|
|
type_description_1,
|
|
par_instance,
|
|
var_cache,
|
|
var_result,
|
|
self->m_closure[0],
|
|
self->m_closure[2],
|
|
self->m_closure[1]
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_c1079d473fbf278b11d5b55fb8527333 == cache_frame_c1079d473fbf278b11d5b55fb8527333 )
|
|
{
|
|
Py_DECREF( frame_c1079d473fbf278b11d5b55fb8527333 );
|
|
}
|
|
cache_frame_c1079d473fbf278b11d5b55fb8527333 = NULL;
|
|
|
|
assertFrameObject( frame_c1079d473fbf278b11d5b55fb8527333 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto try_except_handler_1;
|
|
|
|
frame_no_exception_1:;
|
|
{
|
|
CHECK_OBJECT( var_result );
|
|
tmp_return_value = var_result;
|
|
Py_INCREF( tmp_return_value );
|
|
goto try_return_handler_1;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils$$$function_17_cached_property$$$function_1_inner );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_instance );
|
|
par_instance = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_cache );
|
|
var_cache = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_result );
|
|
var_result = 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_instance );
|
|
par_instance = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_cache );
|
|
var_cache = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_result );
|
|
var_result = 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( cryptography$utils$$$function_17_cached_property$$$function_1_inner );
|
|
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_cryptography$utils$$$function_10___init__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_10___init__,
|
|
const_str_plain___init__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_6f9d18bcef4d922bea22eaa6c4288e94,
|
|
#endif
|
|
codeobj_8a7ea647a4af74d7ce0b1b23cf4fd605,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_11___init__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_11___init__,
|
|
const_str_plain___init__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_af6997b40dc5114deaab693f4011e0e1,
|
|
#endif
|
|
codeobj_24f77e4979d6f47e45953536eb307b21,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_12___getattr__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_12___getattr__,
|
|
const_str_plain___getattr__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_c123f49ec7dc041d5a18567d267cc37c,
|
|
#endif
|
|
codeobj_2d7ee2996200ce3c49a5a86cd7c632dd,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_13___setattr__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_13___setattr__,
|
|
const_str_plain___setattr__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_de8b0a46730389a37585d0405f18ddc7,
|
|
#endif
|
|
codeobj_f23d556e7059bc16501cd75e54975d59,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_14___delattr__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_14___delattr__,
|
|
const_str_plain___delattr__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_9548779aff339cdb93c2780bc3de1e2a,
|
|
#endif
|
|
codeobj_9fce0ee10c63f7b6db78b05685e71def,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_15___dir__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_15___dir__,
|
|
const_str_plain___dir__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_8ae996c7d5c83fa9570321dbacf761be,
|
|
#endif
|
|
codeobj_94baf283693c1756947b617cb6291c5c,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_16_deprecated( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_16_deprecated,
|
|
const_str_plain_deprecated,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_29b05ad771331362b270765ccd6078f8,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_17_cached_property( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_17_cached_property,
|
|
const_str_plain_cached_property,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_8b2ddd1838998fca0adecac574fd322a,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_17_cached_property$$$function_1_inner( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_17_cached_property$$$function_1_inner,
|
|
const_str_plain_inner,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_7ffd55158caec8b225d2fb8d78ec9c0b,
|
|
#endif
|
|
codeobj_c1079d473fbf278b11d5b55fb8527333,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
3
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_1__check_bytes( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_1__check_bytes,
|
|
const_str_plain__check_bytes,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_82e9afe43bd1e476deb2f50896ef0d9e,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_2_read_only_property( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_2_read_only_property,
|
|
const_str_plain_read_only_property,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_90ef44d27d321948a5c4525d26ce7895,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_2_read_only_property$$$function_1_lambda( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_2_read_only_property$$$function_1_lambda,
|
|
const_str_angle_lambda,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_9e83c4db96f8c33e4932c23de15e3bdf,
|
|
#endif
|
|
codeobj_b85e3928a16990cbcd75fd29a20f2b34,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
1
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_3_register_interface( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_3_register_interface,
|
|
const_str_plain_register_interface,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_592bddb655682d82e054f41f860f173c,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_3_register_interface$$$function_1_register_decorator( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_3_register_interface$$$function_1_register_decorator,
|
|
const_str_plain_register_decorator,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_02877ade627df860c5126f0f8a69f3f0,
|
|
#endif
|
|
codeobj_ecfcf044faff2e27f8363ebf325c1c79,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
1
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_4_register_interface_if( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_4_register_interface_if,
|
|
const_str_plain_register_interface_if,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_df6ca80ef0518a66bdf97196df148d69,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_4_register_interface_if$$$function_1_register_decorator( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_4_register_interface_if$$$function_1_register_decorator,
|
|
const_str_plain_register_decorator,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_5c3a2d8607eadf447d860ab64e27be77,
|
|
#endif
|
|
codeobj_f1b483cef5af2b2c7d02429f0b9ab788,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
2
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_6_int_to_bytes( PyObject *defaults )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_6_int_to_bytes,
|
|
const_str_plain_int_to_bytes,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_f2ef91930af51d38d7dca81bb7590120,
|
|
defaults,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_8_verify_interface( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_8_verify_interface,
|
|
const_str_plain_verify_interface,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_e413c426b5dd868d2b76f01b0169d044,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_cryptography$utils$$$function_9_bit_length( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_cryptography$utils$$$function_9_bit_length,
|
|
const_str_plain_bit_length,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_9ce9cc3f6af403b361b0ef1327876045,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_cryptography$utils,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
static struct PyModuleDef mdef_cryptography$utils =
|
|
{
|
|
PyModuleDef_HEAD_INIT,
|
|
"cryptography.utils", /* 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( cryptography$utils )
|
|
{
|
|
#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_cryptography$utils );
|
|
}
|
|
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("cryptography.utils: 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("cryptography.utils: Calling createModuleConstants().");
|
|
#endif
|
|
createModuleConstants();
|
|
|
|
/* The code objects used by this module are created now. */
|
|
#ifdef _NUITKA_TRACE
|
|
puts("cryptography.utils: Calling createModuleCodeObjects().");
|
|
#endif
|
|
createModuleCodeObjects();
|
|
|
|
// puts( "in initcryptography$utils" );
|
|
|
|
// 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_cryptography$utils = Py_InitModule4(
|
|
"cryptography.utils", // 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_cryptography$utils = PyModule_Create( &mdef_cryptography$utils );
|
|
#endif
|
|
|
|
moduledict_cryptography$utils = MODULE_DICT( module_cryptography$utils );
|
|
|
|
// Update "__package__" value to what it ought to be.
|
|
{
|
|
#if 0
|
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain___name__ );
|
|
|
|
UPDATE_STRING_DICT1(
|
|
moduledict_cryptography$utils,
|
|
(Nuitka_StringObject *)const_str_plain___package__,
|
|
module_name
|
|
);
|
|
|
|
#else
|
|
|
|
#if PYTHON_VERSION < 300
|
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (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_cryptography$utils,
|
|
(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_cryptography$utils, (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_cryptography$utils,
|
|
(Nuitka_StringObject *)const_str_plain___package__,
|
|
PyUnicode_Substring( module_name, 0, dot_index )
|
|
);
|
|
}
|
|
#endif
|
|
#endif
|
|
}
|
|
|
|
CHECK_OBJECT( module_cryptography$utils );
|
|
|
|
// 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_8b0e1374dcc590bdb16ac8ec2446b5d1, module_cryptography$utils );
|
|
|
|
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_cryptography$utils, (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_cryptography$utils, (Nuitka_StringObject *)const_str_plain___builtins__, value );
|
|
}
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
UPDATE_STRING_DICT0( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
|
|
#endif
|
|
|
|
#if PYTHON_VERSION >= 340
|
|
#if 0
|
|
UPDATE_STRING_DICT0( moduledict_cryptography$utils, (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_cryptography$utils, (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_cryptography$utils, (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 *tmp_class_creation_1__bases = NULL;
|
|
PyObject *tmp_class_creation_1__bases_orig = 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__class_decl_dict = NULL;
|
|
PyObject *tmp_class_creation_4__metaclass = NULL;
|
|
PyObject *tmp_class_creation_4__prepared = NULL;
|
|
PyObject *tmp_import_from_1__module = NULL;
|
|
struct Nuitka_FrameObject *frame_3093c087e5d66857d5e54e104fb8f46d;
|
|
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;
|
|
int tmp_res;
|
|
PyObject *tmp_dictdel_dict;
|
|
PyObject *tmp_dictdel_key;
|
|
bool tmp_result;
|
|
PyObject *locals_cryptography$utils_16 = NULL;
|
|
PyObject *tmp_dictset_value;
|
|
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;
|
|
PyObject *locals_cryptography$utils_79 = 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;
|
|
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 *locals_cryptography$utils_115 = NULL;
|
|
struct Nuitka_FrameObject *frame_7633978a89564355b7ca68813fb0ac25_2;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_7633978a89564355b7ca68813fb0ac25_2 = 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 *locals_cryptography$utils_122 = NULL;
|
|
struct Nuitka_FrameObject *frame_4f5eb749d2e42ac55a98a62d32709812_3;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_4f5eb749d2e42ac55a98a62d32709812_3 = NULL;
|
|
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;
|
|
|
|
// Module code.
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
tmp_assign_source_1 = Py_None;
|
|
UPDATE_STRING_DICT0( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
tmp_assign_source_2 = const_str_digest_4a949517a6bb82a7ce4d1e16ba017b77;
|
|
UPDATE_STRING_DICT0( moduledict_cryptography$utils, (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_cryptography$utils, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
tmp_assign_source_4 = PyImport_ImportModule("__future__");
|
|
assert( !(tmp_assign_source_4 == NULL) );
|
|
assert( tmp_import_from_1__module == NULL );
|
|
Py_INCREF( tmp_assign_source_4 );
|
|
tmp_import_from_1__module = tmp_assign_source_4;
|
|
|
|
}
|
|
// Frame without reuse.
|
|
frame_3093c087e5d66857d5e54e104fb8f46d = MAKE_MODULE_FRAME( codeobj_3093c087e5d66857d5e54e104fb8f46d, module_cryptography$utils );
|
|
|
|
// Push the new frame as the currently active one, and we should be exclusively
|
|
// owning it.
|
|
pushFrameStack( frame_3093c087e5d66857d5e54e104fb8f46d );
|
|
assert( Py_REFCNT( frame_3093c087e5d66857d5e54e104fb8f46d ) == 2 );
|
|
|
|
// Framed code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
PyObject *tmp_import_name_from_1;
|
|
CHECK_OBJECT( tmp_import_from_1__module );
|
|
tmp_import_name_from_1 = tmp_import_from_1__module;
|
|
tmp_assign_source_5 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_absolute_import );
|
|
if ( tmp_assign_source_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 5;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_absolute_import, tmp_assign_source_5 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_6;
|
|
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_6 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_division );
|
|
if ( tmp_assign_source_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 5;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_division, tmp_assign_source_6 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_7;
|
|
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_7 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_print_function );
|
|
if ( tmp_assign_source_7 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 5;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_print_function, tmp_assign_source_7 );
|
|
}
|
|
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_8;
|
|
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_abc;
|
|
tmp_globals_name_1 = (PyObject *)moduledict_cryptography$utils;
|
|
tmp_locals_name_1 = Py_None;
|
|
tmp_fromlist_name_1 = Py_None;
|
|
tmp_level_name_1 = const_int_0;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 7;
|
|
tmp_assign_source_8 = 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_8 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 7;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_abc, tmp_assign_source_8 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_9;
|
|
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_binascii;
|
|
tmp_globals_name_2 = (PyObject *)moduledict_cryptography$utils;
|
|
tmp_locals_name_2 = Py_None;
|
|
tmp_fromlist_name_2 = Py_None;
|
|
tmp_level_name_2 = const_int_0;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 8;
|
|
tmp_assign_source_9 = 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_9 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 8;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_binascii, tmp_assign_source_9 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_10;
|
|
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_inspect;
|
|
tmp_globals_name_3 = (PyObject *)moduledict_cryptography$utils;
|
|
tmp_locals_name_3 = Py_None;
|
|
tmp_fromlist_name_3 = Py_None;
|
|
tmp_level_name_3 = const_int_0;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 9;
|
|
tmp_assign_source_10 = 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_10 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 9;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_inspect, tmp_assign_source_10 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_11;
|
|
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_cryptography$utils;
|
|
tmp_locals_name_4 = Py_None;
|
|
tmp_fromlist_name_4 = Py_None;
|
|
tmp_level_name_4 = const_int_0;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 10;
|
|
tmp_assign_source_11 = 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_11 == NULL) );
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_sys, tmp_assign_source_11 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_12;
|
|
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_warnings;
|
|
tmp_globals_name_5 = (PyObject *)moduledict_cryptography$utils;
|
|
tmp_locals_name_5 = Py_None;
|
|
tmp_fromlist_name_5 = Py_None;
|
|
tmp_level_name_5 = const_int_0;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 11;
|
|
tmp_assign_source_12 = 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_12 == 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_cryptography$utils, (Nuitka_StringObject *)const_str_plain_warnings, tmp_assign_source_12 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_13;
|
|
PyObject *tmp_tuple_element_1;
|
|
PyObject *tmp_mvar_value_1;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_UserWarning );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_UserWarning );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "UserWarning" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_tuple_element_1 = tmp_mvar_value_1;
|
|
tmp_assign_source_13 = PyTuple_New( 1 );
|
|
Py_INCREF( tmp_tuple_element_1 );
|
|
PyTuple_SET_ITEM( tmp_assign_source_13, 0, tmp_tuple_element_1 );
|
|
assert( tmp_class_creation_1__bases_orig == NULL );
|
|
tmp_class_creation_1__bases_orig = tmp_assign_source_13;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_14;
|
|
PyObject *tmp_dircall_arg1_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases_orig );
|
|
tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig;
|
|
Py_INCREF( tmp_dircall_arg1_1 );
|
|
|
|
{
|
|
PyObject *dir_call_args[] = {tmp_dircall_arg1_1};
|
|
tmp_assign_source_14 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
|
|
}
|
|
if ( tmp_assign_source_14 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_class_creation_1__bases == NULL );
|
|
tmp_class_creation_1__bases = tmp_assign_source_14;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_15;
|
|
tmp_assign_source_15 = PyDict_New();
|
|
assert( tmp_class_creation_1__class_decl_dict == NULL );
|
|
tmp_class_creation_1__class_decl_dict = tmp_assign_source_15;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_16;
|
|
PyObject *tmp_metaclass_name_1;
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_key_name_1;
|
|
PyObject *tmp_dict_name_1;
|
|
PyObject *tmp_dict_name_2;
|
|
PyObject *tmp_key_name_2;
|
|
nuitka_bool tmp_condition_result_2;
|
|
int tmp_truth_name_1;
|
|
PyObject *tmp_type_arg_1;
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_subscript_name_1;
|
|
PyObject *tmp_bases_name_1;
|
|
tmp_key_name_1 = const_str_plain_metaclass;
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_dict_name_1 = tmp_class_creation_1__class_decl_dict;
|
|
tmp_res = PyDict_Contains( tmp_dict_name_1, tmp_key_name_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto condexpr_true_1;
|
|
}
|
|
else
|
|
{
|
|
goto condexpr_false_1;
|
|
}
|
|
condexpr_true_1:;
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_dict_name_2 = tmp_class_creation_1__class_decl_dict;
|
|
tmp_key_name_2 = const_str_plain_metaclass;
|
|
tmp_metaclass_name_1 = DICT_GET_ITEM( tmp_dict_name_2, tmp_key_name_2 );
|
|
if ( tmp_metaclass_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
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 = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto condexpr_true_2;
|
|
}
|
|
else
|
|
{
|
|
goto condexpr_false_2;
|
|
}
|
|
condexpr_true_2:;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_subscribed_name_1 = tmp_class_creation_1__bases;
|
|
tmp_subscript_name_1 = const_int_0;
|
|
tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 );
|
|
if ( tmp_type_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
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 = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
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_16 = SELECT_METACLASS( tmp_metaclass_name_1, tmp_bases_name_1 );
|
|
Py_DECREF( tmp_metaclass_name_1 );
|
|
if ( tmp_assign_source_16 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_class_creation_1__metaclass == NULL );
|
|
tmp_class_creation_1__metaclass = tmp_assign_source_16;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_3;
|
|
PyObject *tmp_key_name_3;
|
|
PyObject *tmp_dict_name_3;
|
|
tmp_key_name_3 = const_str_plain_metaclass;
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_dict_name_3 = tmp_class_creation_1__class_decl_dict;
|
|
tmp_res = PyDict_Contains( tmp_dict_name_3, tmp_key_name_3 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict;
|
|
tmp_dictdel_key = const_str_plain_metaclass;
|
|
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_4;
|
|
PyObject *tmp_source_name_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
|
tmp_source_name_1 = tmp_class_creation_1__metaclass;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_1, const_str_plain___prepare__ );
|
|
tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_2;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_2;
|
|
}
|
|
branch_yes_2:;
|
|
{
|
|
PyObject *tmp_assign_source_17;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_2;
|
|
PyObject *tmp_args_name_1;
|
|
PyObject *tmp_tuple_element_2;
|
|
PyObject *tmp_kw_name_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
|
tmp_source_name_2 = tmp_class_creation_1__metaclass;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain___prepare__ );
|
|
if ( tmp_called_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_tuple_element_2 = const_str_plain_CryptographyDeprecationWarning;
|
|
tmp_args_name_1 = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_2 );
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_2 );
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_tuple_element_2 = tmp_class_creation_1__bases;
|
|
Py_INCREF( tmp_tuple_element_2 );
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_2 );
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_kw_name_1 = tmp_class_creation_1__class_decl_dict;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 16;
|
|
tmp_assign_source_17 = 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_17 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_class_creation_1__prepared == NULL );
|
|
tmp_class_creation_1__prepared = tmp_assign_source_17;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_5;
|
|
PyObject *tmp_operand_name_1;
|
|
PyObject *tmp_source_name_3;
|
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
|
tmp_source_name_3 = tmp_class_creation_1__prepared;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_3, 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 = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_condition_result_5 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_3;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_3;
|
|
}
|
|
branch_yes_3:;
|
|
{
|
|
PyObject *tmp_raise_type_1;
|
|
PyObject *tmp_raise_value_1;
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_right_name_1;
|
|
PyObject *tmp_tuple_element_3;
|
|
PyObject *tmp_getattr_target_1;
|
|
PyObject *tmp_getattr_attr_1;
|
|
PyObject *tmp_getattr_default_1;
|
|
PyObject *tmp_source_name_4;
|
|
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_3 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 );
|
|
if ( tmp_tuple_element_3 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_right_name_1 = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_3 );
|
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
|
tmp_type_arg_2 = tmp_class_creation_1__prepared;
|
|
tmp_source_name_4 = BUILTIN_TYPE1( tmp_type_arg_2 );
|
|
assert( !(tmp_source_name_4 == NULL) );
|
|
tmp_tuple_element_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain___name__ );
|
|
Py_DECREF( tmp_source_name_4 );
|
|
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 = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_3 );
|
|
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 = 16;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
exception_type = tmp_raise_type_1;
|
|
Py_INCREF( tmp_raise_type_1 );
|
|
exception_value = tmp_raise_value_1;
|
|
exception_lineno = 16;
|
|
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
branch_no_3:;
|
|
}
|
|
goto branch_end_2;
|
|
branch_no_2:;
|
|
{
|
|
PyObject *tmp_assign_source_18;
|
|
tmp_assign_source_18 = PyDict_New();
|
|
assert( tmp_class_creation_1__prepared == NULL );
|
|
tmp_class_creation_1__prepared = tmp_assign_source_18;
|
|
|
|
}
|
|
branch_end_2:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_19;
|
|
{
|
|
PyObject *tmp_set_locals_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
|
tmp_set_locals_1 = tmp_class_creation_1__prepared;
|
|
locals_cryptography$utils_16 = tmp_set_locals_1;
|
|
Py_INCREF( tmp_set_locals_1 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_dictset_value = const_str_digest_8b0e1374dcc590bdb16ac8ec2446b5d1;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_16, 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 = 16;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_str_plain_CryptographyDeprecationWarning;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_16, 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 = 16;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_6;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_compexpr_left_1 = tmp_class_creation_1__bases;
|
|
CHECK_OBJECT( tmp_class_creation_1__bases_orig );
|
|
tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig;
|
|
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_1, tmp_compexpr_right_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
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:;
|
|
{
|
|
CHECK_OBJECT( tmp_class_creation_1__bases_orig );
|
|
tmp_dictset_value = tmp_class_creation_1__bases_orig;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_16, 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 = 16;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
}
|
|
branch_no_4:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_20;
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_args_name_2;
|
|
PyObject *tmp_tuple_element_4;
|
|
PyObject *tmp_kw_name_2;
|
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
|
tmp_called_name_2 = tmp_class_creation_1__metaclass;
|
|
tmp_tuple_element_4 = const_str_plain_CryptographyDeprecationWarning;
|
|
tmp_args_name_2 = PyTuple_New( 3 );
|
|
Py_INCREF( tmp_tuple_element_4 );
|
|
PyTuple_SET_ITEM( tmp_args_name_2, 0, tmp_tuple_element_4 );
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_tuple_element_4 = tmp_class_creation_1__bases;
|
|
Py_INCREF( tmp_tuple_element_4 );
|
|
PyTuple_SET_ITEM( tmp_args_name_2, 1, tmp_tuple_element_4 );
|
|
tmp_tuple_element_4 = locals_cryptography$utils_16;
|
|
Py_INCREF( tmp_tuple_element_4 );
|
|
PyTuple_SET_ITEM( tmp_args_name_2, 2, tmp_tuple_element_4 );
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_kw_name_2 = tmp_class_creation_1__class_decl_dict;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 16;
|
|
tmp_assign_source_20 = CALL_FUNCTION( tmp_called_name_2, tmp_args_name_2, tmp_kw_name_2 );
|
|
Py_DECREF( tmp_args_name_2 );
|
|
if ( tmp_assign_source_20 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 16;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
assert( outline_0_var___class__ == NULL );
|
|
outline_0_var___class__ = tmp_assign_source_20;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( outline_0_var___class__ );
|
|
tmp_assign_source_19 = outline_0_var___class__;
|
|
Py_INCREF( tmp_assign_source_19 );
|
|
goto try_return_handler_4;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_4:;
|
|
{
|
|
Py_DECREF( locals_cryptography$utils_16 );
|
|
locals_cryptography$utils_16 = NULL;
|
|
}
|
|
{
|
|
goto try_return_handler_3;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_4:;
|
|
exception_keeper_type_2 = exception_type;
|
|
exception_keeper_value_2 = exception_value;
|
|
exception_keeper_tb_2 = exception_tb;
|
|
exception_keeper_lineno_2 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_DECREF( locals_cryptography$utils_16 );
|
|
locals_cryptography$utils_16 = 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:
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_3:;
|
|
{
|
|
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_3:;
|
|
exception_keeper_type_3 = exception_type;
|
|
exception_keeper_value_3 = exception_value;
|
|
exception_keeper_tb_3 = exception_tb;
|
|
exception_keeper_lineno_3 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_3;
|
|
exception_value = exception_keeper_value_3;
|
|
exception_tb = exception_keeper_tb_3;
|
|
exception_lineno = exception_keeper_lineno_3;
|
|
|
|
goto outline_exception_1;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
outline_exception_1:;
|
|
exception_lineno = 16;
|
|
goto try_except_handler_2;
|
|
outline_result_1:;
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_CryptographyDeprecationWarning, tmp_assign_source_19 );
|
|
}
|
|
goto try_end_2;
|
|
// Exception handler code:
|
|
try_except_handler_2:;
|
|
exception_keeper_type_4 = exception_type;
|
|
exception_keeper_value_4 = exception_value;
|
|
exception_keeper_tb_4 = exception_tb;
|
|
exception_keeper_lineno_4 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_class_creation_1__bases );
|
|
tmp_class_creation_1__bases = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_class_creation_1__class_decl_dict );
|
|
tmp_class_creation_1__class_decl_dict = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_class_creation_1__metaclass );
|
|
tmp_class_creation_1__metaclass = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_class_creation_1__prepared );
|
|
tmp_class_creation_1__prepared = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_4;
|
|
exception_value = exception_keeper_value_4;
|
|
exception_tb = exception_keeper_tb_4;
|
|
exception_lineno = exception_keeper_lineno_4;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_2:;
|
|
}
|
|
{
|
|
CHECK_OBJECT( (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;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_21;
|
|
PyObject *tmp_mvar_value_2;
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_CryptographyDeprecationWarning );
|
|
|
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
|
{
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_CryptographyDeprecationWarning );
|
|
}
|
|
|
|
if ( tmp_mvar_value_2 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "CryptographyDeprecationWarning" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 23;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assign_source_21 = tmp_mvar_value_2;
|
|
UPDATE_STRING_DICT0( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_PersistentlyDeprecated, tmp_assign_source_21 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_22;
|
|
PyObject *tmp_mvar_value_3;
|
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_CryptographyDeprecationWarning );
|
|
|
|
if (unlikely( tmp_mvar_value_3 == NULL ))
|
|
{
|
|
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_CryptographyDeprecationWarning );
|
|
}
|
|
|
|
if ( tmp_mvar_value_3 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "CryptographyDeprecationWarning" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 24;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assign_source_22 = tmp_mvar_value_3;
|
|
UPDATE_STRING_DICT0( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_DeprecatedIn21, tmp_assign_source_22 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_23;
|
|
PyObject *tmp_mvar_value_4;
|
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_CryptographyDeprecationWarning );
|
|
|
|
if (unlikely( tmp_mvar_value_4 == NULL ))
|
|
{
|
|
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_CryptographyDeprecationWarning );
|
|
}
|
|
|
|
if ( tmp_mvar_value_4 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "CryptographyDeprecationWarning" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 25;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assign_source_23 = tmp_mvar_value_4;
|
|
UPDATE_STRING_DICT0( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_DeprecatedIn23, tmp_assign_source_23 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_24;
|
|
tmp_assign_source_24 = MAKE_FUNCTION_cryptography$utils$$$function_1__check_bytes( );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain__check_bytes, tmp_assign_source_24 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_25;
|
|
tmp_assign_source_25 = MAKE_FUNCTION_cryptography$utils$$$function_2_read_only_property( );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_read_only_property, tmp_assign_source_25 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_26;
|
|
tmp_assign_source_26 = MAKE_FUNCTION_cryptography$utils$$$function_3_register_interface( );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_register_interface, tmp_assign_source_26 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_27;
|
|
tmp_assign_source_27 = MAKE_FUNCTION_cryptography$utils$$$function_4_register_interface_if( );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_register_interface_if, tmp_assign_source_27 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_28;
|
|
PyObject *tmp_source_name_5;
|
|
tmp_source_name_5 = (PyObject *)&PyLong_Type;
|
|
tmp_assign_source_28 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_from_bytes );
|
|
assert( !(tmp_assign_source_28 == NULL) );
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_int_from_bytes, tmp_assign_source_28 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_29;
|
|
PyObject *tmp_defaults_1;
|
|
tmp_defaults_1 = const_tuple_none_tuple;
|
|
Py_INCREF( tmp_defaults_1 );
|
|
tmp_assign_source_29 = MAKE_FUNCTION_cryptography$utils$$$function_6_int_to_bytes( tmp_defaults_1 );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_int_to_bytes, tmp_assign_source_29 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_30;
|
|
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_30 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
|
|
}
|
|
if ( tmp_assign_source_30 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
assert( tmp_class_creation_2__bases == NULL );
|
|
tmp_class_creation_2__bases = tmp_assign_source_30;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_31;
|
|
tmp_assign_source_31 = PyDict_New();
|
|
assert( tmp_class_creation_2__class_decl_dict == NULL );
|
|
tmp_class_creation_2__class_decl_dict = tmp_assign_source_31;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_32;
|
|
PyObject *tmp_metaclass_name_2;
|
|
nuitka_bool tmp_condition_result_7;
|
|
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_8;
|
|
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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
tmp_condition_result_7 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_7 == 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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
tmp_condition_result_8 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_8 == 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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
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_32 = SELECT_METACLASS( tmp_metaclass_name_2, tmp_bases_name_2 );
|
|
Py_DECREF( tmp_metaclass_name_2 );
|
|
if ( tmp_assign_source_32 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
assert( tmp_class_creation_2__metaclass == NULL );
|
|
tmp_class_creation_2__metaclass = tmp_assign_source_32;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_9;
|
|
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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
tmp_condition_result_9 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_9 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_5;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_5;
|
|
}
|
|
branch_yes_5:;
|
|
{
|
|
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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
}
|
|
branch_no_5:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_10;
|
|
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_10 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_10 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_6;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_6;
|
|
}
|
|
branch_yes_6:;
|
|
{
|
|
PyObject *tmp_assign_source_33;
|
|
PyObject *tmp_called_name_3;
|
|
PyObject *tmp_source_name_7;
|
|
PyObject *tmp_args_name_3;
|
|
PyObject *tmp_tuple_element_5;
|
|
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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
tmp_tuple_element_5 = const_str_plain_InterfaceNotImplemented;
|
|
tmp_args_name_3 = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_5 );
|
|
PyTuple_SET_ITEM( tmp_args_name_3, 0, tmp_tuple_element_5 );
|
|
CHECK_OBJECT( tmp_class_creation_2__bases );
|
|
tmp_tuple_element_5 = tmp_class_creation_2__bases;
|
|
Py_INCREF( tmp_tuple_element_5 );
|
|
PyTuple_SET_ITEM( tmp_args_name_3, 1, tmp_tuple_element_5 );
|
|
CHECK_OBJECT( tmp_class_creation_2__class_decl_dict );
|
|
tmp_kw_name_3 = tmp_class_creation_2__class_decl_dict;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 79;
|
|
tmp_assign_source_33 = 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_33 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
assert( tmp_class_creation_2__prepared == NULL );
|
|
tmp_class_creation_2__prepared = tmp_assign_source_33;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_11;
|
|
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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
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:;
|
|
{
|
|
PyObject *tmp_raise_type_2;
|
|
PyObject *tmp_raise_value_2;
|
|
PyObject *tmp_left_name_2;
|
|
PyObject *tmp_right_name_2;
|
|
PyObject *tmp_tuple_element_6;
|
|
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_6 = BUILTIN_GETATTR( tmp_getattr_target_2, tmp_getattr_attr_2, tmp_getattr_default_2 );
|
|
if ( tmp_tuple_element_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
tmp_right_name_2 = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_right_name_2, 0, tmp_tuple_element_6 );
|
|
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_6 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain___name__ );
|
|
Py_DECREF( tmp_source_name_9 );
|
|
if ( tmp_tuple_element_6 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_right_name_2 );
|
|
|
|
exception_lineno = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
PyTuple_SET_ITEM( tmp_right_name_2, 1, tmp_tuple_element_6 );
|
|
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 = 79;
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
exception_type = tmp_raise_type_2;
|
|
Py_INCREF( tmp_raise_type_2 );
|
|
exception_value = tmp_raise_value_2;
|
|
exception_lineno = 79;
|
|
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
|
|
|
|
goto try_except_handler_5;
|
|
}
|
|
branch_no_7:;
|
|
}
|
|
goto branch_end_6;
|
|
branch_no_6:;
|
|
{
|
|
PyObject *tmp_assign_source_34;
|
|
tmp_assign_source_34 = PyDict_New();
|
|
assert( tmp_class_creation_2__prepared == NULL );
|
|
tmp_class_creation_2__prepared = tmp_assign_source_34;
|
|
|
|
}
|
|
branch_end_6:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_35;
|
|
{
|
|
PyObject *tmp_set_locals_2;
|
|
CHECK_OBJECT( tmp_class_creation_2__prepared );
|
|
tmp_set_locals_2 = tmp_class_creation_2__prepared;
|
|
locals_cryptography$utils_79 = tmp_set_locals_2;
|
|
Py_INCREF( tmp_set_locals_2 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_dictset_value = const_str_digest_8b0e1374dcc590bdb16ac8ec2446b5d1;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_79, 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 = 79;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_str_plain_InterfaceNotImplemented;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_79, 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 = 79;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_12;
|
|
PyObject *tmp_compexpr_left_2;
|
|
PyObject *tmp_compexpr_right_2;
|
|
CHECK_OBJECT( tmp_class_creation_2__bases );
|
|
tmp_compexpr_left_2 = tmp_class_creation_2__bases;
|
|
tmp_compexpr_right_2 = const_tuple_type_Exception_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 = 79;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
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:;
|
|
{
|
|
tmp_dictset_value = const_tuple_type_Exception_tuple;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_79, 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 = 79;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
}
|
|
branch_no_8:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_36;
|
|
PyObject *tmp_called_name_4;
|
|
PyObject *tmp_args_name_4;
|
|
PyObject *tmp_tuple_element_7;
|
|
PyObject *tmp_kw_name_4;
|
|
CHECK_OBJECT( tmp_class_creation_2__metaclass );
|
|
tmp_called_name_4 = tmp_class_creation_2__metaclass;
|
|
tmp_tuple_element_7 = const_str_plain_InterfaceNotImplemented;
|
|
tmp_args_name_4 = PyTuple_New( 3 );
|
|
Py_INCREF( tmp_tuple_element_7 );
|
|
PyTuple_SET_ITEM( tmp_args_name_4, 0, tmp_tuple_element_7 );
|
|
CHECK_OBJECT( tmp_class_creation_2__bases );
|
|
tmp_tuple_element_7 = tmp_class_creation_2__bases;
|
|
Py_INCREF( tmp_tuple_element_7 );
|
|
PyTuple_SET_ITEM( tmp_args_name_4, 1, tmp_tuple_element_7 );
|
|
tmp_tuple_element_7 = locals_cryptography$utils_79;
|
|
Py_INCREF( tmp_tuple_element_7 );
|
|
PyTuple_SET_ITEM( tmp_args_name_4, 2, tmp_tuple_element_7 );
|
|
CHECK_OBJECT( tmp_class_creation_2__class_decl_dict );
|
|
tmp_kw_name_4 = tmp_class_creation_2__class_decl_dict;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 79;
|
|
tmp_assign_source_36 = CALL_FUNCTION( tmp_called_name_4, tmp_args_name_4, tmp_kw_name_4 );
|
|
Py_DECREF( tmp_args_name_4 );
|
|
if ( tmp_assign_source_36 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 79;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
assert( outline_1_var___class__ == NULL );
|
|
outline_1_var___class__ = tmp_assign_source_36;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( outline_1_var___class__ );
|
|
tmp_assign_source_35 = outline_1_var___class__;
|
|
Py_INCREF( tmp_assign_source_35 );
|
|
goto try_return_handler_7;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_7:;
|
|
{
|
|
Py_DECREF( locals_cryptography$utils_79 );
|
|
locals_cryptography$utils_79 = NULL;
|
|
}
|
|
{
|
|
goto try_return_handler_6;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_7:;
|
|
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_DECREF( locals_cryptography$utils_79 );
|
|
locals_cryptography$utils_79 = 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_6;
|
|
}
|
|
// End of try:
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_6:;
|
|
{
|
|
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_6:;
|
|
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;
|
|
|
|
{
|
|
// 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 outline_exception_2;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
outline_exception_2:;
|
|
exception_lineno = 79;
|
|
goto try_except_handler_5;
|
|
outline_result_2:;
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_InterfaceNotImplemented, tmp_assign_source_35 );
|
|
}
|
|
goto try_end_3;
|
|
// Exception handler code:
|
|
try_except_handler_5:;
|
|
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;
|
|
|
|
{
|
|
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_7;
|
|
exception_value = exception_keeper_value_7;
|
|
exception_tb = exception_keeper_tb_7;
|
|
exception_lineno = exception_keeper_lineno_7;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_3:;
|
|
}
|
|
{
|
|
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;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_13;
|
|
PyObject *tmp_source_name_10;
|
|
PyObject *tmp_mvar_value_5;
|
|
PyObject *tmp_attribute_name_1;
|
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_inspect );
|
|
|
|
if (unlikely( tmp_mvar_value_5 == NULL ))
|
|
{
|
|
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_inspect );
|
|
}
|
|
|
|
if ( tmp_mvar_value_5 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "inspect" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 83;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_10 = tmp_mvar_value_5;
|
|
tmp_attribute_name_1 = const_str_plain_signature;
|
|
tmp_res = BUILTIN_HASATTR_BOOL( tmp_source_name_10, tmp_attribute_name_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 83;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
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_assign_source_37;
|
|
PyObject *tmp_source_name_11;
|
|
PyObject *tmp_mvar_value_6;
|
|
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_inspect );
|
|
|
|
if (unlikely( tmp_mvar_value_6 == NULL ))
|
|
{
|
|
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_inspect );
|
|
}
|
|
|
|
if ( tmp_mvar_value_6 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "inspect" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 84;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_11 = tmp_mvar_value_6;
|
|
tmp_assign_source_37 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_signature );
|
|
if ( tmp_assign_source_37 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 84;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_signature, tmp_assign_source_37 );
|
|
}
|
|
goto branch_end_9;
|
|
branch_no_9:;
|
|
{
|
|
PyObject *tmp_assign_source_38;
|
|
PyObject *tmp_source_name_12;
|
|
PyObject *tmp_mvar_value_7;
|
|
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_inspect );
|
|
|
|
if (unlikely( tmp_mvar_value_7 == NULL ))
|
|
{
|
|
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_inspect );
|
|
}
|
|
|
|
if ( tmp_mvar_value_7 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "inspect" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 86;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_12 = tmp_mvar_value_7;
|
|
tmp_assign_source_38 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain_getargspec );
|
|
if ( tmp_assign_source_38 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 86;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_signature, tmp_assign_source_38 );
|
|
}
|
|
branch_end_9:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_39;
|
|
tmp_assign_source_39 = MAKE_FUNCTION_cryptography$utils$$$function_8_verify_interface( );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_verify_interface, tmp_assign_source_39 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_40;
|
|
tmp_assign_source_40 = MAKE_FUNCTION_cryptography$utils$$$function_9_bit_length( );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_bit_length, tmp_assign_source_40 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_41;
|
|
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_41 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
|
|
}
|
|
if ( tmp_assign_source_41 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
assert( tmp_class_creation_3__bases == NULL );
|
|
tmp_class_creation_3__bases = tmp_assign_source_41;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_42;
|
|
tmp_assign_source_42 = PyDict_New();
|
|
assert( tmp_class_creation_3__class_decl_dict == NULL );
|
|
tmp_class_creation_3__class_decl_dict = tmp_assign_source_42;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_43;
|
|
PyObject *tmp_metaclass_name_3;
|
|
nuitka_bool tmp_condition_result_14;
|
|
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_15;
|
|
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 = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
tmp_condition_result_14 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_14 == 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 = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
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 = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
tmp_condition_result_15 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_15 == 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 = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
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 = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
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_43 = SELECT_METACLASS( tmp_metaclass_name_3, tmp_bases_name_3 );
|
|
Py_DECREF( tmp_metaclass_name_3 );
|
|
if ( tmp_assign_source_43 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
assert( tmp_class_creation_3__metaclass == NULL );
|
|
tmp_class_creation_3__metaclass = tmp_assign_source_43;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_16;
|
|
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 = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
tmp_condition_result_16 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_16 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_10;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_10;
|
|
}
|
|
branch_yes_10:;
|
|
{
|
|
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 = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
}
|
|
branch_no_10:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_17;
|
|
PyObject *tmp_source_name_13;
|
|
CHECK_OBJECT( tmp_class_creation_3__metaclass );
|
|
tmp_source_name_13 = tmp_class_creation_3__metaclass;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_13, const_str_plain___prepare__ );
|
|
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:;
|
|
{
|
|
PyObject *tmp_assign_source_44;
|
|
PyObject *tmp_called_name_5;
|
|
PyObject *tmp_source_name_14;
|
|
PyObject *tmp_args_name_5;
|
|
PyObject *tmp_tuple_element_8;
|
|
PyObject *tmp_kw_name_5;
|
|
CHECK_OBJECT( tmp_class_creation_3__metaclass );
|
|
tmp_source_name_14 = tmp_class_creation_3__metaclass;
|
|
tmp_called_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_14, const_str_plain___prepare__ );
|
|
if ( tmp_called_name_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
tmp_tuple_element_8 = const_str_plain__DeprecatedValue;
|
|
tmp_args_name_5 = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_8 );
|
|
PyTuple_SET_ITEM( tmp_args_name_5, 0, tmp_tuple_element_8 );
|
|
CHECK_OBJECT( tmp_class_creation_3__bases );
|
|
tmp_tuple_element_8 = tmp_class_creation_3__bases;
|
|
Py_INCREF( tmp_tuple_element_8 );
|
|
PyTuple_SET_ITEM( tmp_args_name_5, 1, tmp_tuple_element_8 );
|
|
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
|
|
tmp_kw_name_5 = tmp_class_creation_3__class_decl_dict;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 115;
|
|
tmp_assign_source_44 = 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_44 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
assert( tmp_class_creation_3__prepared == NULL );
|
|
tmp_class_creation_3__prepared = tmp_assign_source_44;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_18;
|
|
PyObject *tmp_operand_name_3;
|
|
PyObject *tmp_source_name_15;
|
|
CHECK_OBJECT( tmp_class_creation_3__prepared );
|
|
tmp_source_name_15 = tmp_class_creation_3__prepared;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_15, 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 = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
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_raise_type_3;
|
|
PyObject *tmp_raise_value_3;
|
|
PyObject *tmp_left_name_3;
|
|
PyObject *tmp_right_name_3;
|
|
PyObject *tmp_tuple_element_9;
|
|
PyObject *tmp_getattr_target_3;
|
|
PyObject *tmp_getattr_attr_3;
|
|
PyObject *tmp_getattr_default_3;
|
|
PyObject *tmp_source_name_16;
|
|
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_9 = BUILTIN_GETATTR( tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3 );
|
|
if ( tmp_tuple_element_9 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
tmp_right_name_3 = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_right_name_3, 0, tmp_tuple_element_9 );
|
|
CHECK_OBJECT( tmp_class_creation_3__prepared );
|
|
tmp_type_arg_6 = tmp_class_creation_3__prepared;
|
|
tmp_source_name_16 = BUILTIN_TYPE1( tmp_type_arg_6 );
|
|
assert( !(tmp_source_name_16 == NULL) );
|
|
tmp_tuple_element_9 = LOOKUP_ATTRIBUTE( tmp_source_name_16, const_str_plain___name__ );
|
|
Py_DECREF( tmp_source_name_16 );
|
|
if ( tmp_tuple_element_9 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_right_name_3 );
|
|
|
|
exception_lineno = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
PyTuple_SET_ITEM( tmp_right_name_3, 1, tmp_tuple_element_9 );
|
|
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 = 115;
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
exception_type = tmp_raise_type_3;
|
|
Py_INCREF( tmp_raise_type_3 );
|
|
exception_value = tmp_raise_value_3;
|
|
exception_lineno = 115;
|
|
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
|
|
|
|
goto try_except_handler_8;
|
|
}
|
|
branch_no_12:;
|
|
}
|
|
goto branch_end_11;
|
|
branch_no_11:;
|
|
{
|
|
PyObject *tmp_assign_source_45;
|
|
tmp_assign_source_45 = PyDict_New();
|
|
assert( tmp_class_creation_3__prepared == NULL );
|
|
tmp_class_creation_3__prepared = tmp_assign_source_45;
|
|
|
|
}
|
|
branch_end_11:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_46;
|
|
{
|
|
PyObject *tmp_set_locals_3;
|
|
CHECK_OBJECT( tmp_class_creation_3__prepared );
|
|
tmp_set_locals_3 = tmp_class_creation_3__prepared;
|
|
locals_cryptography$utils_115 = tmp_set_locals_3;
|
|
Py_INCREF( tmp_set_locals_3 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_dictset_value = const_str_digest_8b0e1374dcc590bdb16ac8ec2446b5d1;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_115, 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 = 115;
|
|
|
|
goto try_except_handler_10;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_str_plain__DeprecatedValue;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_115, 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 = 115;
|
|
|
|
goto try_except_handler_10;
|
|
}
|
|
}
|
|
MAKE_OR_REUSE_FRAME( cache_frame_7633978a89564355b7ca68813fb0ac25_2, codeobj_7633978a89564355b7ca68813fb0ac25, module_cryptography$utils, sizeof(void *) );
|
|
frame_7633978a89564355b7ca68813fb0ac25_2 = cache_frame_7633978a89564355b7ca68813fb0ac25_2;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_7633978a89564355b7ca68813fb0ac25_2 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_7633978a89564355b7ca68813fb0ac25_2 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_cryptography$utils$$$function_10___init__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_115, 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 = 116;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_7633978a89564355b7ca68813fb0ac25_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_7633978a89564355b7ca68813fb0ac25_2 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_7633978a89564355b7ca68813fb0ac25_2, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_7633978a89564355b7ca68813fb0ac25_2->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_7633978a89564355b7ca68813fb0ac25_2, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_7633978a89564355b7ca68813fb0ac25_2,
|
|
type_description_2,
|
|
outline_2_var___class__
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_7633978a89564355b7ca68813fb0ac25_2 == cache_frame_7633978a89564355b7ca68813fb0ac25_2 )
|
|
{
|
|
Py_DECREF( frame_7633978a89564355b7ca68813fb0ac25_2 );
|
|
}
|
|
cache_frame_7633978a89564355b7ca68813fb0ac25_2 = NULL;
|
|
|
|
assertFrameObject( frame_7633978a89564355b7ca68813fb0ac25_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_10;
|
|
skip_nested_handling_1:;
|
|
{
|
|
nuitka_bool tmp_condition_result_19;
|
|
PyObject *tmp_compexpr_left_3;
|
|
PyObject *tmp_compexpr_right_3;
|
|
CHECK_OBJECT( tmp_class_creation_3__bases );
|
|
tmp_compexpr_left_3 = tmp_class_creation_3__bases;
|
|
tmp_compexpr_right_3 = const_tuple_type_object_tuple;
|
|
tmp_res = RICH_COMPARE_BOOL_NE( 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 = 115;
|
|
|
|
goto try_except_handler_10;
|
|
}
|
|
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:;
|
|
{
|
|
tmp_dictset_value = const_tuple_type_object_tuple;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_115, 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 = 115;
|
|
|
|
goto try_except_handler_10;
|
|
}
|
|
}
|
|
branch_no_13:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_47;
|
|
PyObject *tmp_called_name_6;
|
|
PyObject *tmp_args_name_6;
|
|
PyObject *tmp_tuple_element_10;
|
|
PyObject *tmp_kw_name_6;
|
|
CHECK_OBJECT( tmp_class_creation_3__metaclass );
|
|
tmp_called_name_6 = tmp_class_creation_3__metaclass;
|
|
tmp_tuple_element_10 = const_str_plain__DeprecatedValue;
|
|
tmp_args_name_6 = PyTuple_New( 3 );
|
|
Py_INCREF( tmp_tuple_element_10 );
|
|
PyTuple_SET_ITEM( tmp_args_name_6, 0, tmp_tuple_element_10 );
|
|
CHECK_OBJECT( tmp_class_creation_3__bases );
|
|
tmp_tuple_element_10 = tmp_class_creation_3__bases;
|
|
Py_INCREF( tmp_tuple_element_10 );
|
|
PyTuple_SET_ITEM( tmp_args_name_6, 1, tmp_tuple_element_10 );
|
|
tmp_tuple_element_10 = locals_cryptography$utils_115;
|
|
Py_INCREF( tmp_tuple_element_10 );
|
|
PyTuple_SET_ITEM( tmp_args_name_6, 2, tmp_tuple_element_10 );
|
|
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
|
|
tmp_kw_name_6 = tmp_class_creation_3__class_decl_dict;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 115;
|
|
tmp_assign_source_47 = CALL_FUNCTION( tmp_called_name_6, tmp_args_name_6, tmp_kw_name_6 );
|
|
Py_DECREF( tmp_args_name_6 );
|
|
if ( tmp_assign_source_47 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 115;
|
|
|
|
goto try_except_handler_10;
|
|
}
|
|
assert( outline_2_var___class__ == NULL );
|
|
outline_2_var___class__ = tmp_assign_source_47;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( outline_2_var___class__ );
|
|
tmp_assign_source_46 = outline_2_var___class__;
|
|
Py_INCREF( tmp_assign_source_46 );
|
|
goto try_return_handler_10;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_10:;
|
|
{
|
|
Py_DECREF( locals_cryptography$utils_115 );
|
|
locals_cryptography$utils_115 = NULL;
|
|
}
|
|
{
|
|
goto try_return_handler_9;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_10:;
|
|
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_cryptography$utils_115 );
|
|
locals_cryptography$utils_115 = 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_9;
|
|
}
|
|
// End of try:
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_9:;
|
|
{
|
|
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_9:;
|
|
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_3;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
outline_exception_3:;
|
|
exception_lineno = 115;
|
|
goto try_except_handler_8;
|
|
outline_result_3:;
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain__DeprecatedValue, tmp_assign_source_46 );
|
|
}
|
|
goto try_end_4;
|
|
// Exception handler code:
|
|
try_except_handler_8:;
|
|
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_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_10;
|
|
exception_value = exception_keeper_value_10;
|
|
exception_tb = exception_keeper_tb_10;
|
|
exception_lineno = exception_keeper_lineno_10;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_4:;
|
|
}
|
|
{
|
|
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_48;
|
|
PyObject *tmp_dircall_arg1_4;
|
|
tmp_dircall_arg1_4 = const_tuple_type_object_tuple;
|
|
Py_INCREF( tmp_dircall_arg1_4 );
|
|
|
|
{
|
|
PyObject *dir_call_args[] = {tmp_dircall_arg1_4};
|
|
tmp_assign_source_48 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
|
|
}
|
|
if ( tmp_assign_source_48 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
assert( tmp_class_creation_4__bases == NULL );
|
|
tmp_class_creation_4__bases = tmp_assign_source_48;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_49;
|
|
tmp_assign_source_49 = PyDict_New();
|
|
assert( tmp_class_creation_4__class_decl_dict == NULL );
|
|
tmp_class_creation_4__class_decl_dict = tmp_assign_source_49;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_50;
|
|
PyObject *tmp_metaclass_name_4;
|
|
nuitka_bool tmp_condition_result_20;
|
|
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_21;
|
|
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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
tmp_condition_result_20 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_20 == 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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
tmp_condition_result_21 = tmp_truth_name_4 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_21 == 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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
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_50 = SELECT_METACLASS( tmp_metaclass_name_4, tmp_bases_name_4 );
|
|
Py_DECREF( tmp_metaclass_name_4 );
|
|
if ( tmp_assign_source_50 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
assert( tmp_class_creation_4__metaclass == NULL );
|
|
tmp_class_creation_4__metaclass = tmp_assign_source_50;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_22;
|
|
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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
tmp_condition_result_22 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_22 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_14;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_14;
|
|
}
|
|
branch_yes_14:;
|
|
{
|
|
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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
}
|
|
branch_no_14:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_23;
|
|
PyObject *tmp_source_name_17;
|
|
CHECK_OBJECT( tmp_class_creation_4__metaclass );
|
|
tmp_source_name_17 = tmp_class_creation_4__metaclass;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_17, const_str_plain___prepare__ );
|
|
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:;
|
|
{
|
|
PyObject *tmp_assign_source_51;
|
|
PyObject *tmp_called_name_7;
|
|
PyObject *tmp_source_name_18;
|
|
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_18 = tmp_class_creation_4__metaclass;
|
|
tmp_called_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_18, const_str_plain___prepare__ );
|
|
if ( tmp_called_name_7 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
tmp_tuple_element_11 = const_str_plain__ModuleWithDeprecations;
|
|
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_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 122;
|
|
tmp_assign_source_51 = 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_51 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
assert( tmp_class_creation_4__prepared == NULL );
|
|
tmp_class_creation_4__prepared = tmp_assign_source_51;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_24;
|
|
PyObject *tmp_operand_name_4;
|
|
PyObject *tmp_source_name_19;
|
|
CHECK_OBJECT( tmp_class_creation_4__prepared );
|
|
tmp_source_name_19 = tmp_class_creation_4__prepared;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_19, 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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
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_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_20;
|
|
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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
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_20 = BUILTIN_TYPE1( tmp_type_arg_8 );
|
|
assert( !(tmp_source_name_20 == NULL) );
|
|
tmp_tuple_element_12 = LOOKUP_ATTRIBUTE( tmp_source_name_20, const_str_plain___name__ );
|
|
Py_DECREF( tmp_source_name_20 );
|
|
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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
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 = 122;
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
exception_type = tmp_raise_type_4;
|
|
Py_INCREF( tmp_raise_type_4 );
|
|
exception_value = tmp_raise_value_4;
|
|
exception_lineno = 122;
|
|
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
|
|
|
|
goto try_except_handler_11;
|
|
}
|
|
branch_no_16:;
|
|
}
|
|
goto branch_end_15;
|
|
branch_no_15:;
|
|
{
|
|
PyObject *tmp_assign_source_52;
|
|
tmp_assign_source_52 = PyDict_New();
|
|
assert( tmp_class_creation_4__prepared == NULL );
|
|
tmp_class_creation_4__prepared = tmp_assign_source_52;
|
|
|
|
}
|
|
branch_end_15:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_53;
|
|
{
|
|
PyObject *tmp_set_locals_4;
|
|
CHECK_OBJECT( tmp_class_creation_4__prepared );
|
|
tmp_set_locals_4 = tmp_class_creation_4__prepared;
|
|
locals_cryptography$utils_122 = tmp_set_locals_4;
|
|
Py_INCREF( tmp_set_locals_4 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_dictset_value = const_str_digest_8b0e1374dcc590bdb16ac8ec2446b5d1;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_122, 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 = 122;
|
|
|
|
goto try_except_handler_13;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_str_plain__ModuleWithDeprecations;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_122, 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 = 122;
|
|
|
|
goto try_except_handler_13;
|
|
}
|
|
}
|
|
MAKE_OR_REUSE_FRAME( cache_frame_4f5eb749d2e42ac55a98a62d32709812_3, codeobj_4f5eb749d2e42ac55a98a62d32709812, module_cryptography$utils, sizeof(void *) );
|
|
frame_4f5eb749d2e42ac55a98a62d32709812_3 = cache_frame_4f5eb749d2e42ac55a98a62d32709812_3;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_4f5eb749d2e42ac55a98a62d32709812_3 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_4f5eb749d2e42ac55a98a62d32709812_3 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_cryptography$utils$$$function_11___init__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_122, 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 = 123;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_cryptography$utils$$$function_12___getattr__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_122, const_str_plain___getattr__, 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 = 126;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_cryptography$utils$$$function_13___setattr__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_122, const_str_plain___setattr__, 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 = 133;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_cryptography$utils$$$function_14___delattr__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_122, const_str_plain___delattr__, 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 = 136;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_cryptography$utils$$$function_15___dir__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_122, const_str_plain___dir__, 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 = 143;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_4f5eb749d2e42ac55a98a62d32709812_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_4f5eb749d2e42ac55a98a62d32709812_3 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_4f5eb749d2e42ac55a98a62d32709812_3, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_4f5eb749d2e42ac55a98a62d32709812_3->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_4f5eb749d2e42ac55a98a62d32709812_3, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_4f5eb749d2e42ac55a98a62d32709812_3,
|
|
type_description_2,
|
|
outline_3_var___class__
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_4f5eb749d2e42ac55a98a62d32709812_3 == cache_frame_4f5eb749d2e42ac55a98a62d32709812_3 )
|
|
{
|
|
Py_DECREF( frame_4f5eb749d2e42ac55a98a62d32709812_3 );
|
|
}
|
|
cache_frame_4f5eb749d2e42ac55a98a62d32709812_3 = NULL;
|
|
|
|
assertFrameObject( frame_4f5eb749d2e42ac55a98a62d32709812_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_13;
|
|
skip_nested_handling_2:;
|
|
{
|
|
nuitka_bool tmp_condition_result_25;
|
|
PyObject *tmp_compexpr_left_4;
|
|
PyObject *tmp_compexpr_right_4;
|
|
CHECK_OBJECT( tmp_class_creation_4__bases );
|
|
tmp_compexpr_left_4 = tmp_class_creation_4__bases;
|
|
tmp_compexpr_right_4 = const_tuple_type_object_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 = 122;
|
|
|
|
goto try_except_handler_13;
|
|
}
|
|
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:;
|
|
{
|
|
tmp_dictset_value = const_tuple_type_object_tuple;
|
|
tmp_res = PyObject_SetItem( locals_cryptography$utils_122, 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 = 122;
|
|
|
|
goto try_except_handler_13;
|
|
}
|
|
}
|
|
branch_no_17:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_54;
|
|
PyObject *tmp_called_name_8;
|
|
PyObject *tmp_args_name_8;
|
|
PyObject *tmp_tuple_element_13;
|
|
PyObject *tmp_kw_name_8;
|
|
CHECK_OBJECT( tmp_class_creation_4__metaclass );
|
|
tmp_called_name_8 = tmp_class_creation_4__metaclass;
|
|
tmp_tuple_element_13 = const_str_plain__ModuleWithDeprecations;
|
|
tmp_args_name_8 = PyTuple_New( 3 );
|
|
Py_INCREF( tmp_tuple_element_13 );
|
|
PyTuple_SET_ITEM( tmp_args_name_8, 0, tmp_tuple_element_13 );
|
|
CHECK_OBJECT( tmp_class_creation_4__bases );
|
|
tmp_tuple_element_13 = tmp_class_creation_4__bases;
|
|
Py_INCREF( tmp_tuple_element_13 );
|
|
PyTuple_SET_ITEM( tmp_args_name_8, 1, tmp_tuple_element_13 );
|
|
tmp_tuple_element_13 = locals_cryptography$utils_122;
|
|
Py_INCREF( tmp_tuple_element_13 );
|
|
PyTuple_SET_ITEM( tmp_args_name_8, 2, tmp_tuple_element_13 );
|
|
CHECK_OBJECT( tmp_class_creation_4__class_decl_dict );
|
|
tmp_kw_name_8 = tmp_class_creation_4__class_decl_dict;
|
|
frame_3093c087e5d66857d5e54e104fb8f46d->m_frame.f_lineno = 122;
|
|
tmp_assign_source_54 = CALL_FUNCTION( tmp_called_name_8, tmp_args_name_8, tmp_kw_name_8 );
|
|
Py_DECREF( tmp_args_name_8 );
|
|
if ( tmp_assign_source_54 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 122;
|
|
|
|
goto try_except_handler_13;
|
|
}
|
|
assert( outline_3_var___class__ == NULL );
|
|
outline_3_var___class__ = tmp_assign_source_54;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( outline_3_var___class__ );
|
|
tmp_assign_source_53 = outline_3_var___class__;
|
|
Py_INCREF( tmp_assign_source_53 );
|
|
goto try_return_handler_13;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_13:;
|
|
{
|
|
Py_DECREF( locals_cryptography$utils_122 );
|
|
locals_cryptography$utils_122 = NULL;
|
|
}
|
|
{
|
|
goto try_return_handler_12;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_13:;
|
|
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;
|
|
|
|
{
|
|
Py_DECREF( locals_cryptography$utils_122 );
|
|
locals_cryptography$utils_122 = NULL;
|
|
}
|
|
{
|
|
// 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 try_except_handler_12;
|
|
}
|
|
// End of try:
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_12:;
|
|
{
|
|
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_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;
|
|
|
|
{
|
|
// 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 outline_exception_4;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( cryptography$utils );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
outline_exception_4:;
|
|
exception_lineno = 122;
|
|
goto try_except_handler_11;
|
|
outline_result_4:;
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain__ModuleWithDeprecations, tmp_assign_source_53 );
|
|
}
|
|
goto try_end_5;
|
|
// Exception handler code:
|
|
try_except_handler_11:;
|
|
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;
|
|
|
|
{
|
|
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_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_5:;
|
|
}
|
|
|
|
// Restore frame exception if necessary.
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_3093c087e5d66857d5e54e104fb8f46d );
|
|
#endif
|
|
popFrameStack();
|
|
|
|
assertFrameObject( frame_3093c087e5d66857d5e54e104fb8f46d );
|
|
|
|
goto frame_no_exception_3;
|
|
|
|
frame_exception_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_3093c087e5d66857d5e54e104fb8f46d );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_3093c087e5d66857d5e54e104fb8f46d, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_3093c087e5d66857d5e54e104fb8f46d->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_3093c087e5d66857d5e54e104fb8f46d, exception_lineno );
|
|
}
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto module_exception_exit;
|
|
|
|
frame_no_exception_3:;
|
|
{
|
|
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;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_55;
|
|
tmp_assign_source_55 = MAKE_FUNCTION_cryptography$utils$$$function_16_deprecated( );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_deprecated, tmp_assign_source_55 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_56;
|
|
tmp_assign_source_56 = MAKE_FUNCTION_cryptography$utils$$$function_17_cached_property( );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_cryptography$utils, (Nuitka_StringObject *)const_str_plain_cached_property, tmp_assign_source_56 );
|
|
}
|
|
|
|
return MOD_RETURN_VALUE( module_cryptography$utils );
|
|
module_exception_exit:
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
}
|