mirror of
https://github.com/house-of-vanity/fesmoo_perdoliq.git
synced 2025-08-21 16:17:15 +00:00
836 lines
33 KiB
C
836 lines
33 KiB
C
/* Generated code for Python source for module 'settings'
|
|
* 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_settings 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_settings;
|
|
PyDictObject *moduledict_settings;
|
|
|
|
/* The module constants used, if any. */
|
|
extern PyObject *const_str_plain_scam_data_10;
|
|
static PyObject *const_str_plain___EVENTVALIDATION;
|
|
static PyObject *const_str_plain_4F4B5F1E;
|
|
static PyObject *const_dict_74b5f0f32051eaa768e1fc73990e075f;
|
|
static PyObject *const_str_digest_8ffb52508bf1acfc1331d73092158877;
|
|
extern PyObject *const_str_plain_scam_data_3;
|
|
static PyObject *const_str_plain_DXScript;
|
|
extern PyObject *const_str_plain_z;
|
|
extern PyObject *const_str_plain_update;
|
|
static PyObject *const_str_plain___EVENTARGUMENT;
|
|
static PyObject *const_str_digest_93b73f63f91b69b37b80d9f57ac652d5;
|
|
extern PyObject *const_str_plain_y;
|
|
extern PyObject *const_str_plain___file__;
|
|
static PyObject *const_str_digest_c9c5de04857925bb247705d1c38ae432;
|
|
static PyObject *const_str_digest_afbecd414f38d849f9d22c3a25f25837;
|
|
extern PyObject *const_str_plain_copy;
|
|
static PyObject *const_str_digest_4873ca899d18340ed260e8733126e17b;
|
|
extern PyObject *const_str_plain_0;
|
|
static PyObject *const_str_plain_A8B80323;
|
|
static PyObject *const_str_digest_751cd091276291e031b75e2c076ca949;
|
|
static PyObject *const_dict_69dd35a9805fdcd8b47dd9ad078a1102;
|
|
extern PyObject *const_str_plain_merge;
|
|
extern PyObject *const_str_plain_scam_data_7;
|
|
static PyObject *const_str_plain___VIEWSTATE;
|
|
static PyObject *const_str_digest_2a2e03a4cbff039fb28bc4c433a25bab;
|
|
extern PyObject *const_str_plain_scam_data_8;
|
|
extern PyObject *const_str_plain_scam_data_4;
|
|
static PyObject *const_str_plain___VIEWSTATEGENERATOR;
|
|
static PyObject *const_dict_15ed5b907abc24dca7bbb9701528dd67;
|
|
extern PyObject *const_tuple_str_plain_x_str_plain_y_str_plain_z_tuple;
|
|
static PyObject *const_dict_6b2627279331bb139302ddcf8b560999;
|
|
static PyObject *const_str_plain_6D81C9BC;
|
|
extern PyObject *const_str_plain_scam_data_2;
|
|
static PyObject *const_str_digest_88db145a5710900eb13b45561d5c2b98;
|
|
extern PyObject *const_str_plain_scam_data_5;
|
|
extern PyObject *const_str_plain_fesmu_root_url;
|
|
static PyObject *const_str_digest_d2aa97cd3a36336925f72747bda81dbd;
|
|
extern PyObject *const_str_plain_x;
|
|
extern PyObject *const_str_plain_scam_data_9;
|
|
static PyObject *const_str_digest_a1b81e6bd0d26914ec3d3f8c99940943;
|
|
extern PyObject *const_str_plain_settings;
|
|
static PyObject *const_dict_3b748915dbd4fa2c5e73fc1474c9dacf;
|
|
extern PyObject *const_str_plain_scam_data_1;
|
|
static PyObject *const_str_plain_CF2D5825;
|
|
static PyObject *const_str_digest_7372d6a5cff77216b47ec8cde7038999;
|
|
static PyObject *const_str_digest_7ce4b3e5ac6ef33bc5979c52e7081208;
|
|
extern PyObject *const_str_empty;
|
|
static PyObject *const_str_plain___EVENTTARGET;
|
|
static PyObject *const_str_digest_b8fde6a28a1ba8e6c592c32d29d17510;
|
|
static PyObject *const_dict_f2a0b183188a4b25ff466703260dc28a;
|
|
static PyObject *const_dict_e444b37e09c07f72ce25ec5d6a083d73;
|
|
static PyObject *const_str_digest_0954e08d0da0f9a135e90a545dda80fe;
|
|
static PyObject *const_dict_1033e9e59cfd0ea187fa87c6f285721e;
|
|
extern PyObject *const_str_plain___doc__;
|
|
extern PyObject *const_str_plain___cached__;
|
|
extern PyObject *const_str_plain_scam_data_6;
|
|
static PyObject *const_dict_dd1ae0380d5d639fe55467a7fd909bee;
|
|
static PyObject *const_dict_2a7643602f4a7ba1a8ca37962abf2960;
|
|
static PyObject *const_str_digest_8619233d846d950d0246a55de1b55681;
|
|
static PyObject *module_filename_obj;
|
|
|
|
static bool constants_created = false;
|
|
|
|
static void createModuleConstants( void )
|
|
{
|
|
const_str_plain___EVENTVALIDATION = UNSTREAM_STRING( &constant_bin[ 1100403 ], 17, 1 );
|
|
const_str_plain_4F4B5F1E = UNSTREAM_STRING( &constant_bin[ 1100420 ], 8, 0 );
|
|
const_dict_74b5f0f32051eaa768e1fc73990e075f = _PyDict_NewPresized( 6 );
|
|
const_str_digest_d2aa97cd3a36336925f72747bda81dbd = UNSTREAM_STRING( &constant_bin[ 1100428 ], 51, 1 );
|
|
PyDict_SetItem( const_dict_74b5f0f32051eaa768e1fc73990e075f, const_str_digest_d2aa97cd3a36336925f72747bda81dbd, const_str_empty );
|
|
const_str_plain___EVENTTARGET = UNSTREAM_STRING( &constant_bin[ 1100479 ], 13, 1 );
|
|
PyDict_SetItem( const_dict_74b5f0f32051eaa768e1fc73990e075f, const_str_plain___EVENTTARGET, const_str_empty );
|
|
const_str_plain___EVENTARGUMENT = UNSTREAM_STRING( &constant_bin[ 1100492 ], 15, 1 );
|
|
PyDict_SetItem( const_dict_74b5f0f32051eaa768e1fc73990e075f, const_str_plain___EVENTARGUMENT, const_str_empty );
|
|
const_str_plain___VIEWSTATE = UNSTREAM_STRING( &constant_bin[ 1100507 ], 11, 1 );
|
|
const_str_digest_93b73f63f91b69b37b80d9f57ac652d5 = UNSTREAM_STRING( &constant_bin[ 1100518 ], 6268, 0 );
|
|
PyDict_SetItem( const_dict_74b5f0f32051eaa768e1fc73990e075f, const_str_plain___VIEWSTATE, const_str_digest_93b73f63f91b69b37b80d9f57ac652d5 );
|
|
const_str_plain___VIEWSTATEGENERATOR = UNSTREAM_STRING( &constant_bin[ 1106786 ], 20, 1 );
|
|
PyDict_SetItem( const_dict_74b5f0f32051eaa768e1fc73990e075f, const_str_plain___VIEWSTATEGENERATOR, const_str_plain_4F4B5F1E );
|
|
const_str_plain_DXScript = UNSTREAM_STRING( &constant_bin[ 1106806 ], 8, 1 );
|
|
const_str_digest_2a2e03a4cbff039fb28bc4c433a25bab = UNSTREAM_STRING( &constant_bin[ 1106814 ], 24, 0 );
|
|
PyDict_SetItem( const_dict_74b5f0f32051eaa768e1fc73990e075f, const_str_plain_DXScript, const_str_digest_2a2e03a4cbff039fb28bc4c433a25bab );
|
|
assert( PyDict_Size( const_dict_74b5f0f32051eaa768e1fc73990e075f ) == 6 );
|
|
const_str_digest_8ffb52508bf1acfc1331d73092158877 = UNSTREAM_STRING( &constant_bin[ 1106838 ], 6504, 0 );
|
|
const_str_digest_c9c5de04857925bb247705d1c38ae432 = UNSTREAM_STRING( &constant_bin[ 1113342 ], 21, 0 );
|
|
const_str_digest_afbecd414f38d849f9d22c3a25f25837 = UNSTREAM_STRING( &constant_bin[ 1113363 ], 32, 0 );
|
|
const_str_digest_4873ca899d18340ed260e8733126e17b = UNSTREAM_STRING( &constant_bin[ 1113395 ], 928, 0 );
|
|
const_str_plain_A8B80323 = UNSTREAM_STRING( &constant_bin[ 1114323 ], 8, 1 );
|
|
const_str_digest_751cd091276291e031b75e2c076ca949 = UNSTREAM_STRING( &constant_bin[ 1114331 ], 30, 0 );
|
|
const_dict_69dd35a9805fdcd8b47dd9ad078a1102 = PyMarshal_ReadObjectFromString( (char *)&constant_bin[ 1114361 ], 976 );
|
|
const_dict_15ed5b907abc24dca7bbb9701528dd67 = PyMarshal_ReadObjectFromString( (char *)&constant_bin[ 1115337 ], 1554 );
|
|
const_dict_6b2627279331bb139302ddcf8b560999 = _PyDict_NewPresized( 7 );
|
|
PyDict_SetItem( const_dict_6b2627279331bb139302ddcf8b560999, const_str_digest_d2aa97cd3a36336925f72747bda81dbd, const_str_empty );
|
|
PyDict_SetItem( const_dict_6b2627279331bb139302ddcf8b560999, const_str_plain___EVENTTARGET, const_str_empty );
|
|
PyDict_SetItem( const_dict_6b2627279331bb139302ddcf8b560999, const_str_plain___EVENTARGUMENT, const_str_empty );
|
|
const_str_digest_8619233d846d950d0246a55de1b55681 = UNSTREAM_STRING( &constant_bin[ 1116891 ], 6372, 0 );
|
|
PyDict_SetItem( const_dict_6b2627279331bb139302ddcf8b560999, const_str_plain___VIEWSTATE, const_str_digest_8619233d846d950d0246a55de1b55681 );
|
|
PyDict_SetItem( const_dict_6b2627279331bb139302ddcf8b560999, const_str_plain___VIEWSTATEGENERATOR, const_str_plain_4F4B5F1E );
|
|
const_str_digest_7372d6a5cff77216b47ec8cde7038999 = UNSTREAM_STRING( &constant_bin[ 1123263 ], 30, 0 );
|
|
PyDict_SetItem( const_dict_6b2627279331bb139302ddcf8b560999, const_str_digest_7372d6a5cff77216b47ec8cde7038999, const_str_empty );
|
|
PyDict_SetItem( const_dict_6b2627279331bb139302ddcf8b560999, const_str_plain_DXScript, const_str_digest_2a2e03a4cbff039fb28bc4c433a25bab );
|
|
assert( PyDict_Size( const_dict_6b2627279331bb139302ddcf8b560999 ) == 7 );
|
|
const_str_plain_6D81C9BC = UNSTREAM_STRING( &constant_bin[ 1123293 ], 8, 0 );
|
|
const_str_digest_88db145a5710900eb13b45561d5c2b98 = UNSTREAM_STRING( &constant_bin[ 1123301 ], 200, 0 );
|
|
const_str_digest_a1b81e6bd0d26914ec3d3f8c99940943 = UNSTREAM_STRING( &constant_bin[ 1123501 ], 180, 0 );
|
|
const_dict_3b748915dbd4fa2c5e73fc1474c9dacf = PyMarshal_ReadObjectFromString( (char *)&constant_bin[ 1123681 ], 1526 );
|
|
const_str_plain_CF2D5825 = UNSTREAM_STRING( &constant_bin[ 1116313 ], 8, 1 );
|
|
const_str_digest_7ce4b3e5ac6ef33bc5979c52e7081208 = UNSTREAM_STRING( &constant_bin[ 1125207 ], 42, 0 );
|
|
const_str_digest_b8fde6a28a1ba8e6c592c32d29d17510 = UNSTREAM_STRING( &constant_bin[ 1116861 ], 29, 0 );
|
|
const_dict_f2a0b183188a4b25ff466703260dc28a = PyMarshal_ReadObjectFromString( (char *)&constant_bin[ 1125249 ], 1581 );
|
|
const_dict_e444b37e09c07f72ce25ec5d6a083d73 = _PyDict_NewPresized( 9 );
|
|
PyDict_SetItem( const_dict_e444b37e09c07f72ce25ec5d6a083d73, const_str_digest_d2aa97cd3a36336925f72747bda81dbd, const_str_empty );
|
|
PyDict_SetItem( const_dict_e444b37e09c07f72ce25ec5d6a083d73, const_str_plain___EVENTTARGET, const_str_empty );
|
|
PyDict_SetItem( const_dict_e444b37e09c07f72ce25ec5d6a083d73, const_str_plain___EVENTARGUMENT, const_str_empty );
|
|
PyDict_SetItem( const_dict_e444b37e09c07f72ce25ec5d6a083d73, const_str_plain___VIEWSTATE, const_str_digest_4873ca899d18340ed260e8733126e17b );
|
|
PyDict_SetItem( const_dict_e444b37e09c07f72ce25ec5d6a083d73, const_str_plain___VIEWSTATEGENERATOR, const_str_plain_CF2D5825 );
|
|
PyDict_SetItem( const_dict_e444b37e09c07f72ce25ec5d6a083d73, const_str_plain___EVENTVALIDATION, const_str_digest_a1b81e6bd0d26914ec3d3f8c99940943 );
|
|
PyDict_SetItem( const_dict_e444b37e09c07f72ce25ec5d6a083d73, const_str_digest_c9c5de04857925bb247705d1c38ae432, const_str_plain_0 );
|
|
PyDict_SetItem( const_dict_e444b37e09c07f72ce25ec5d6a083d73, const_str_digest_751cd091276291e031b75e2c076ca949, const_str_empty );
|
|
PyDict_SetItem( const_dict_e444b37e09c07f72ce25ec5d6a083d73, const_str_plain_DXScript, const_str_digest_b8fde6a28a1ba8e6c592c32d29d17510 );
|
|
assert( PyDict_Size( const_dict_e444b37e09c07f72ce25ec5d6a083d73 ) == 9 );
|
|
const_str_digest_0954e08d0da0f9a135e90a545dda80fe = UNSTREAM_STRING( &constant_bin[ 1126830 ], 676, 0 );
|
|
const_dict_1033e9e59cfd0ea187fa87c6f285721e = PyMarshal_ReadObjectFromString( (char *)&constant_bin[ 1127506 ], 1574 );
|
|
const_dict_dd1ae0380d5d639fe55467a7fd909bee = _PyDict_NewPresized( 9 );
|
|
PyDict_SetItem( const_dict_dd1ae0380d5d639fe55467a7fd909bee, const_str_digest_d2aa97cd3a36336925f72747bda81dbd, const_str_empty );
|
|
PyDict_SetItem( const_dict_dd1ae0380d5d639fe55467a7fd909bee, const_str_plain___EVENTTARGET, const_str_empty );
|
|
PyDict_SetItem( const_dict_dd1ae0380d5d639fe55467a7fd909bee, const_str_plain___EVENTARGUMENT, const_str_empty );
|
|
PyDict_SetItem( const_dict_dd1ae0380d5d639fe55467a7fd909bee, const_str_plain___VIEWSTATE, const_str_digest_0954e08d0da0f9a135e90a545dda80fe );
|
|
PyDict_SetItem( const_dict_dd1ae0380d5d639fe55467a7fd909bee, const_str_plain___VIEWSTATEGENERATOR, const_str_plain_A8B80323 );
|
|
PyDict_SetItem( const_dict_dd1ae0380d5d639fe55467a7fd909bee, const_str_plain___EVENTVALIDATION, const_str_digest_88db145a5710900eb13b45561d5c2b98 );
|
|
PyDict_SetItem( const_dict_dd1ae0380d5d639fe55467a7fd909bee, const_str_digest_c9c5de04857925bb247705d1c38ae432, const_str_plain_0 );
|
|
PyDict_SetItem( const_dict_dd1ae0380d5d639fe55467a7fd909bee, const_str_digest_751cd091276291e031b75e2c076ca949, const_str_empty );
|
|
PyDict_SetItem( const_dict_dd1ae0380d5d639fe55467a7fd909bee, const_str_plain_DXScript, const_str_digest_b8fde6a28a1ba8e6c592c32d29d17510 );
|
|
assert( PyDict_Size( const_dict_dd1ae0380d5d639fe55467a7fd909bee ) == 9 );
|
|
const_dict_2a7643602f4a7ba1a8ca37962abf2960 = _PyDict_NewPresized( 7 );
|
|
PyDict_SetItem( const_dict_2a7643602f4a7ba1a8ca37962abf2960, const_str_digest_d2aa97cd3a36336925f72747bda81dbd, const_str_empty );
|
|
PyDict_SetItem( const_dict_2a7643602f4a7ba1a8ca37962abf2960, const_str_plain___EVENTTARGET, const_str_empty );
|
|
PyDict_SetItem( const_dict_2a7643602f4a7ba1a8ca37962abf2960, const_str_plain___EVENTARGUMENT, const_str_empty );
|
|
PyDict_SetItem( const_dict_2a7643602f4a7ba1a8ca37962abf2960, const_str_plain___VIEWSTATE, const_str_digest_8ffb52508bf1acfc1331d73092158877 );
|
|
PyDict_SetItem( const_dict_2a7643602f4a7ba1a8ca37962abf2960, const_str_plain___VIEWSTATEGENERATOR, const_str_plain_6D81C9BC );
|
|
PyDict_SetItem( const_dict_2a7643602f4a7ba1a8ca37962abf2960, const_str_digest_7372d6a5cff77216b47ec8cde7038999, const_str_empty );
|
|
PyDict_SetItem( const_dict_2a7643602f4a7ba1a8ca37962abf2960, const_str_plain_DXScript, const_str_digest_2a2e03a4cbff039fb28bc4c433a25bab );
|
|
assert( PyDict_Size( const_dict_2a7643602f4a7ba1a8ca37962abf2960 ) == 7 );
|
|
|
|
constants_created = true;
|
|
}
|
|
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
void checkModuleConstants_settings( void )
|
|
{
|
|
// The module may not have been used at all.
|
|
if (constants_created == false) return;
|
|
|
|
|
|
}
|
|
#endif
|
|
|
|
// The module code objects.
|
|
static PyCodeObject *codeobj_19111f618140fadf2b3e19c1342bdf66;
|
|
|
|
static void createModuleCodeObjects(void)
|
|
{
|
|
module_filename_obj = const_str_digest_7ce4b3e5ac6ef33bc5979c52e7081208;
|
|
codeobj_19111f618140fadf2b3e19c1342bdf66 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_merge, 4, const_tuple_str_plain_x_str_plain_y_str_plain_z_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
}
|
|
|
|
// The module function declarations.
|
|
static PyObject *MAKE_FUNCTION_settings$$$function_1_merge( );
|
|
|
|
|
|
// The module function definitions.
|
|
static PyObject *impl_settings$$$function_1_merge( 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 ];
|
|
PyObject *par_y = python_pars[ 1 ];
|
|
PyObject *var_z = NULL;
|
|
struct Nuitka_FrameObject *frame_19111f618140fadf2b3e19c1342bdf66;
|
|
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_19111f618140fadf2b3e19c1342bdf66 = 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_19111f618140fadf2b3e19c1342bdf66, codeobj_19111f618140fadf2b3e19c1342bdf66, module_settings, sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_19111f618140fadf2b3e19c1342bdf66 = cache_frame_19111f618140fadf2b3e19c1342bdf66;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_19111f618140fadf2b3e19c1342bdf66 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_19111f618140fadf2b3e19c1342bdf66 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_called_instance_1;
|
|
CHECK_OBJECT( par_x );
|
|
tmp_called_instance_1 = par_x;
|
|
frame_19111f618140fadf2b3e19c1342bdf66->m_frame.f_lineno = 5;
|
|
tmp_assign_source_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_copy );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 5;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_z == NULL );
|
|
var_z = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_args_element_name_1;
|
|
CHECK_OBJECT( var_z );
|
|
tmp_source_name_1 = var_z;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_update );
|
|
if ( tmp_called_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 6;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_y == 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", "y" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 6;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_args_element_name_1 = par_y;
|
|
frame_19111f618140fadf2b3e19c1342bdf66->m_frame.f_lineno = 6;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_1 );
|
|
if ( tmp_unused == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 6;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
{
|
|
if ( var_z == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "z" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 7;
|
|
type_description_1 = "ooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_return_value = var_z;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_19111f618140fadf2b3e19c1342bdf66 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_19111f618140fadf2b3e19c1342bdf66 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_19111f618140fadf2b3e19c1342bdf66 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_19111f618140fadf2b3e19c1342bdf66, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_19111f618140fadf2b3e19c1342bdf66->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_19111f618140fadf2b3e19c1342bdf66, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_19111f618140fadf2b3e19c1342bdf66,
|
|
type_description_1,
|
|
par_x,
|
|
par_y,
|
|
var_z
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_19111f618140fadf2b3e19c1342bdf66 == cache_frame_19111f618140fadf2b3e19c1342bdf66 )
|
|
{
|
|
Py_DECREF( frame_19111f618140fadf2b3e19c1342bdf66 );
|
|
}
|
|
cache_frame_19111f618140fadf2b3e19c1342bdf66 = NULL;
|
|
|
|
assertFrameObject( frame_19111f618140fadf2b3e19c1342bdf66 );
|
|
|
|
// 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( settings$$$function_1_merge );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_x );
|
|
par_x = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_y );
|
|
par_y = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_z );
|
|
var_z = 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;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_y );
|
|
par_y = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_z );
|
|
var_z = 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( settings$$$function_1_merge );
|
|
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_settings$$$function_1_merge( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_settings$$$function_1_merge,
|
|
const_str_plain_merge,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
#endif
|
|
codeobj_19111f618140fadf2b3e19c1342bdf66,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_settings,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
static struct PyModuleDef mdef_settings =
|
|
{
|
|
PyModuleDef_HEAD_INIT,
|
|
"settings", /* 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( settings )
|
|
{
|
|
#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_settings );
|
|
}
|
|
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("settings: 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("settings: Calling createModuleConstants().");
|
|
#endif
|
|
createModuleConstants();
|
|
|
|
/* The code objects used by this module are created now. */
|
|
#ifdef _NUITKA_TRACE
|
|
puts("settings: Calling createModuleCodeObjects().");
|
|
#endif
|
|
createModuleCodeObjects();
|
|
|
|
// puts( "in initsettings" );
|
|
|
|
// 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_settings = Py_InitModule4(
|
|
"settings", // 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_settings = PyModule_Create( &mdef_settings );
|
|
#endif
|
|
|
|
moduledict_settings = MODULE_DICT( module_settings );
|
|
|
|
// Update "__package__" value to what it ought to be.
|
|
{
|
|
#if 0
|
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_settings, (Nuitka_StringObject *)const_str_plain___name__ );
|
|
|
|
UPDATE_STRING_DICT1(
|
|
moduledict_settings,
|
|
(Nuitka_StringObject *)const_str_plain___package__,
|
|
module_name
|
|
);
|
|
|
|
#else
|
|
|
|
#if PYTHON_VERSION < 300
|
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_settings, (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_settings,
|
|
(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_settings, (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_settings,
|
|
(Nuitka_StringObject *)const_str_plain___package__,
|
|
PyUnicode_Substring( module_name, 0, dot_index )
|
|
);
|
|
}
|
|
#endif
|
|
#endif
|
|
}
|
|
|
|
CHECK_OBJECT( module_settings );
|
|
|
|
// 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_plain_settings, module_settings );
|
|
|
|
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_settings, (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_settings, (Nuitka_StringObject *)const_str_plain___builtins__, value );
|
|
}
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
UPDATE_STRING_DICT0( moduledict_settings, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
|
|
#endif
|
|
|
|
#if PYTHON_VERSION >= 340
|
|
#if 0
|
|
UPDATE_STRING_DICT0( moduledict_settings, (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_settings, (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_settings, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
|
|
|
|
Py_DECREF( module_spec_class );
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
|
|
// Temp variables if any
|
|
|
|
|
|
// Module code.
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
tmp_assign_source_1 = Py_None;
|
|
UPDATE_STRING_DICT0( moduledict_settings, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
tmp_assign_source_2 = const_str_digest_7ce4b3e5ac6ef33bc5979c52e7081208;
|
|
UPDATE_STRING_DICT0( moduledict_settings, (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_settings, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
tmp_assign_source_4 = const_str_digest_afbecd414f38d849f9d22c3a25f25837;
|
|
UPDATE_STRING_DICT0( moduledict_settings, (Nuitka_StringObject *)const_str_plain_fesmu_root_url, tmp_assign_source_4 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
tmp_assign_source_5 = MAKE_FUNCTION_settings$$$function_1_merge( );
|
|
|
|
|
|
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_merge, tmp_assign_source_5 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_6;
|
|
tmp_assign_source_6 = PyDict_Copy( const_dict_69dd35a9805fdcd8b47dd9ad078a1102 );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_1, tmp_assign_source_6 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_7;
|
|
tmp_assign_source_7 = PyDict_Copy( const_dict_1033e9e59cfd0ea187fa87c6f285721e );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_2, tmp_assign_source_7 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_8;
|
|
tmp_assign_source_8 = PyDict_Copy( const_dict_3b748915dbd4fa2c5e73fc1474c9dacf );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_3, tmp_assign_source_8 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_9;
|
|
tmp_assign_source_9 = PyDict_Copy( const_dict_74b5f0f32051eaa768e1fc73990e075f );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_4, tmp_assign_source_9 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_10;
|
|
tmp_assign_source_10 = PyDict_Copy( const_dict_f2a0b183188a4b25ff466703260dc28a );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_5, tmp_assign_source_10 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_11;
|
|
tmp_assign_source_11 = PyDict_Copy( const_dict_dd1ae0380d5d639fe55467a7fd909bee );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_6, tmp_assign_source_11 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_12;
|
|
tmp_assign_source_12 = PyDict_Copy( const_dict_15ed5b907abc24dca7bbb9701528dd67 );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_7, tmp_assign_source_12 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_13;
|
|
tmp_assign_source_13 = PyDict_Copy( const_dict_e444b37e09c07f72ce25ec5d6a083d73 );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_8, tmp_assign_source_13 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_14;
|
|
tmp_assign_source_14 = PyDict_Copy( const_dict_6b2627279331bb139302ddcf8b560999 );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_9, tmp_assign_source_14 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_15;
|
|
tmp_assign_source_15 = PyDict_Copy( const_dict_2a7643602f4a7ba1a8ca37962abf2960 );
|
|
UPDATE_STRING_DICT1( moduledict_settings, (Nuitka_StringObject *)const_str_plain_scam_data_10, tmp_assign_source_15 );
|
|
}
|
|
|
|
return MOD_RETURN_VALUE( module_settings );
|
|
}
|