mirror of
https://github.com/house-of-vanity/fesmoo_perdoliq.git
synced 2025-08-21 16:17:15 +00:00
9419 lines
286 KiB
C
9419 lines
286 KiB
C
/* Generated code for Python source for module 'chardet.jpcntx'
|
|
* 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_chardet$jpcntx 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_chardet$jpcntx;
|
|
PyDictObject *moduledict_chardet$jpcntx;
|
|
|
|
/* The module constants used, if any. */
|
|
extern PyObject *const_str_plain_SJISContextAnalysis;
|
|
extern PyObject *const_str_plain_metaclass;
|
|
extern PyObject *const_str_plain___name__;
|
|
static PyObject *const_str_digest_7065400ab02faddeccf35c317f8460d1;
|
|
static PyObject *const_str_digest_f46528c54d535fecd0d9e7e65fa40eb0;
|
|
extern PyObject *const_tuple_str_plain_self_str_plain_byte_str_tuple;
|
|
extern PyObject *const_tuple_str_plain___class___tuple;
|
|
extern PyObject *const_str_angle_metaclass;
|
|
static PyObject *const_str_digest_9b52630297eedac62308f45f81ea4075;
|
|
extern PyObject *const_str_plain_i;
|
|
extern PyObject *const_str_plain_object;
|
|
extern PyObject *const_int_pos_161;
|
|
extern PyObject *const_str_plain___file__;
|
|
static PyObject *const_str_plain_jp2CharContext;
|
|
static PyObject *const_str_digest_8a5daf8f6da3aef3adcbd2ae8a15fd47;
|
|
extern PyObject *const_int_pos_243;
|
|
extern PyObject *const_int_neg_1;
|
|
static PyObject *const_int_pos_142;
|
|
static PyObject *const_int_pos_250;
|
|
extern PyObject *const_int_pos_6;
|
|
extern PyObject *const_str_plain_get_confidence;
|
|
static PyObject *const_int_pos_135;
|
|
extern PyObject *const_str_plain__done;
|
|
extern PyObject *const_str_plain_EUCJPContextAnalysis;
|
|
static PyObject *const_str_plain_NUM_OF_CATEGORY;
|
|
extern PyObject *const_str_plain___doc__;
|
|
extern PyObject *const_str_plain___debug__;
|
|
extern PyObject *const_str_plain___orig_bases__;
|
|
extern PyObject *const_str_plain_char_len;
|
|
extern PyObject *const_str_plain_first_char;
|
|
static PyObject *const_str_plain__total_rel;
|
|
static PyObject *const_str_digest_789ab30d197e8fe6c207b489ef559254;
|
|
extern PyObject *const_str_plain___qualname__;
|
|
static PyObject *const_str_plain_MAX_REL_THRESHOLD;
|
|
extern PyObject *const_tuple_str_plain_self_tuple;
|
|
extern PyObject *const_str_plain_get_order;
|
|
static PyObject *const_str_plain_CP932;
|
|
extern PyObject *const_str_plain_got_enough_data;
|
|
extern PyObject *const_tuple_empty;
|
|
static PyObject *const_str_digest_454cc91cdffdd1487a4dc494efb8bf4c;
|
|
static PyObject *const_str_plain_DONT_KNOW;
|
|
extern PyObject *const_str_plain_MINIMUM_DATA_THRESHOLD;
|
|
extern PyObject *const_int_pos_129;
|
|
static PyObject *const_str_plain_SHIFT_JIS;
|
|
static PyObject *const_int_pos_241;
|
|
static PyObject *const_str_plain_JapaneseContextAnalysis;
|
|
extern PyObject *const_int_pos_202;
|
|
extern PyObject *const_str_plain_False;
|
|
extern PyObject *const_int_pos_164;
|
|
extern PyObject *const_str_plain___getitem__;
|
|
extern PyObject *const_str_plain_charset_name;
|
|
static PyObject *const_str_plain_ENOUGH_REL_THRESHOLD;
|
|
extern PyObject *const_int_0;
|
|
extern PyObject *const_tuple_str_plain_self_str_plain___class___tuple;
|
|
extern PyObject *const_int_pos_1000;
|
|
extern PyObject *const_str_plain_reset;
|
|
extern PyObject *const_int_pos_254;
|
|
extern PyObject *const_str_digest_75fd71b1edada749c2ef7ac810062295;
|
|
static PyObject *const_str_digest_cfd16a8ec0decae98e96bd7c3a079ca1;
|
|
static PyObject *const_int_pos_143;
|
|
static PyObject *const_tuple_int_neg_1_int_pos_1_tuple;
|
|
extern PyObject *const_int_pos_4;
|
|
static PyObject *const_str_plain__last_char_order;
|
|
extern PyObject *const_int_pos_224;
|
|
extern PyObject *const_str_plain_type;
|
|
static PyObject *const_tuple_8d64e34e39720a765d0edd2299c485e2_tuple;
|
|
static PyObject *const_str_digest_c6e429a71fde053d8e68cdb70acfd8ce;
|
|
static PyObject *const_tuple_697ffd6d5ebffd3b89b1995a446e536d_tuple;
|
|
extern PyObject *const_str_plain___cached__;
|
|
extern PyObject *const_int_pos_252;
|
|
extern PyObject *const_str_plain___class__;
|
|
static PyObject *const_str_digest_b67dbbba9f1160ac6a3c859d538f2049;
|
|
static PyObject *const_str_digest_9d45504aa41261df3b7d2bae86e8a8dc;
|
|
extern PyObject *const_tuple_type_object_tuple;
|
|
extern PyObject *const_str_plain___module__;
|
|
extern PyObject *const_str_plain_byte_str;
|
|
extern PyObject *const_int_pos_1;
|
|
extern PyObject *const_list_int_0_list;
|
|
static PyObject *const_str_digest_48f4c4f67057490d113cf4a4c74b5387;
|
|
static PyObject *const_str_plain__rel_sample;
|
|
extern PyObject *const_str_plain___init__;
|
|
extern PyObject *const_int_pos_3;
|
|
extern PyObject *const_str_plain___prepare__;
|
|
static PyObject *const_str_digest_c4c19ff50cb74a2bc0721a6b04341225;
|
|
static PyObject *const_tuple_5fed71172b5ab5fdaa99957ff12e9014_tuple;
|
|
extern PyObject *const_str_plain_self;
|
|
static PyObject *const_str_plain__charset_name;
|
|
static PyObject *const_str_plain__need_to_skip_char_num;
|
|
extern PyObject *const_int_pos_2;
|
|
static PyObject *const_str_digest_f169fb3a1f692d4c7beb725a93b6e18a;
|
|
extern PyObject *const_str_plain_second_char;
|
|
extern PyObject *const_str_plain_property;
|
|
extern PyObject *const_str_plain_feed;
|
|
extern PyObject *const_str_plain_num_bytes;
|
|
extern PyObject *const_int_pos_100;
|
|
extern PyObject *const_int_pos_159;
|
|
extern PyObject *const_str_plain_order;
|
|
static PyObject *module_filename_obj;
|
|
|
|
static bool constants_created = false;
|
|
|
|
static void createModuleConstants( void )
|
|
{
|
|
const_str_digest_7065400ab02faddeccf35c317f8460d1 = UNSTREAM_STRING( &constant_bin[ 259393 ], 32, 0 );
|
|
const_str_digest_f46528c54d535fecd0d9e7e65fa40eb0 = UNSTREAM_STRING( &constant_bin[ 259425 ], 39, 0 );
|
|
const_str_digest_9b52630297eedac62308f45f81ea4075 = UNSTREAM_STRING( &constant_bin[ 259464 ], 32, 0 );
|
|
const_str_plain_jp2CharContext = UNSTREAM_STRING( &constant_bin[ 259496 ], 14, 1 );
|
|
const_str_digest_8a5daf8f6da3aef3adcbd2ae8a15fd47 = UNSTREAM_STRING( &constant_bin[ 259510 ], 29, 0 );
|
|
const_int_pos_142 = PyLong_FromUnsignedLong( 142ul );
|
|
const_int_pos_250 = PyLong_FromUnsignedLong( 250ul );
|
|
const_int_pos_135 = PyLong_FromUnsignedLong( 135ul );
|
|
const_str_plain_NUM_OF_CATEGORY = UNSTREAM_STRING( &constant_bin[ 259539 ], 15, 1 );
|
|
const_str_plain__total_rel = UNSTREAM_STRING( &constant_bin[ 259554 ], 10, 1 );
|
|
const_str_digest_789ab30d197e8fe6c207b489ef559254 = UNSTREAM_STRING( &constant_bin[ 259564 ], 28, 0 );
|
|
const_str_plain_MAX_REL_THRESHOLD = UNSTREAM_STRING( &constant_bin[ 259592 ], 17, 1 );
|
|
const_str_plain_CP932 = UNSTREAM_STRING( &constant_bin[ 259609 ], 5, 1 );
|
|
const_str_digest_454cc91cdffdd1487a4dc494efb8bf4c = UNSTREAM_STRING( &constant_bin[ 259614 ], 30, 0 );
|
|
const_str_plain_DONT_KNOW = UNSTREAM_STRING( &constant_bin[ 259644 ], 9, 1 );
|
|
const_str_plain_SHIFT_JIS = UNSTREAM_STRING( &constant_bin[ 259653 ], 9, 1 );
|
|
const_int_pos_241 = PyLong_FromUnsignedLong( 241ul );
|
|
const_str_plain_JapaneseContextAnalysis = UNSTREAM_STRING( &constant_bin[ 259425 ], 23, 1 );
|
|
const_str_plain_ENOUGH_REL_THRESHOLD = UNSTREAM_STRING( &constant_bin[ 259662 ], 20, 1 );
|
|
const_str_digest_cfd16a8ec0decae98e96bd7c3a079ca1 = UNSTREAM_STRING( &constant_bin[ 259682 ], 38, 0 );
|
|
const_int_pos_143 = PyLong_FromUnsignedLong( 143ul );
|
|
const_tuple_int_neg_1_int_pos_1_tuple = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( const_tuple_int_neg_1_int_pos_1_tuple, 0, const_int_neg_1 ); Py_INCREF( const_int_neg_1 );
|
|
PyTuple_SET_ITEM( const_tuple_int_neg_1_int_pos_1_tuple, 1, const_int_pos_1 ); Py_INCREF( const_int_pos_1 );
|
|
const_str_plain__last_char_order = UNSTREAM_STRING( &constant_bin[ 259720 ], 16, 1 );
|
|
const_tuple_8d64e34e39720a765d0edd2299c485e2_tuple = PyTuple_New( 6 );
|
|
PyTuple_SET_ITEM( const_tuple_8d64e34e39720a765d0edd2299c485e2_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
|
|
PyTuple_SET_ITEM( const_tuple_8d64e34e39720a765d0edd2299c485e2_tuple, 1, const_str_plain_byte_str ); Py_INCREF( const_str_plain_byte_str );
|
|
PyTuple_SET_ITEM( const_tuple_8d64e34e39720a765d0edd2299c485e2_tuple, 2, const_str_plain_num_bytes ); Py_INCREF( const_str_plain_num_bytes );
|
|
PyTuple_SET_ITEM( const_tuple_8d64e34e39720a765d0edd2299c485e2_tuple, 3, const_str_plain_i ); Py_INCREF( const_str_plain_i );
|
|
PyTuple_SET_ITEM( const_tuple_8d64e34e39720a765d0edd2299c485e2_tuple, 4, const_str_plain_order ); Py_INCREF( const_str_plain_order );
|
|
PyTuple_SET_ITEM( const_tuple_8d64e34e39720a765d0edd2299c485e2_tuple, 5, const_str_plain_char_len ); Py_INCREF( const_str_plain_char_len );
|
|
const_str_digest_c6e429a71fde053d8e68cdb70acfd8ce = UNSTREAM_STRING( &constant_bin[ 259736 ], 14, 0 );
|
|
const_tuple_697ffd6d5ebffd3b89b1995a446e536d_tuple = PyTuple_New( 5 );
|
|
PyTuple_SET_ITEM( const_tuple_697ffd6d5ebffd3b89b1995a446e536d_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
|
|
PyTuple_SET_ITEM( const_tuple_697ffd6d5ebffd3b89b1995a446e536d_tuple, 1, const_str_plain_byte_str ); Py_INCREF( const_str_plain_byte_str );
|
|
PyTuple_SET_ITEM( const_tuple_697ffd6d5ebffd3b89b1995a446e536d_tuple, 2, const_str_plain_first_char ); Py_INCREF( const_str_plain_first_char );
|
|
PyTuple_SET_ITEM( const_tuple_697ffd6d5ebffd3b89b1995a446e536d_tuple, 3, const_str_plain_char_len ); Py_INCREF( const_str_plain_char_len );
|
|
PyTuple_SET_ITEM( const_tuple_697ffd6d5ebffd3b89b1995a446e536d_tuple, 4, const_str_plain_second_char ); Py_INCREF( const_str_plain_second_char );
|
|
const_str_digest_b67dbbba9f1160ac6a3c859d538f2049 = UNSTREAM_STRING( &constant_bin[ 259750 ], 33, 0 );
|
|
const_str_digest_9d45504aa41261df3b7d2bae86e8a8dc = UNSTREAM_STRING( &constant_bin[ 259783 ], 50, 0 );
|
|
const_str_digest_48f4c4f67057490d113cf4a4c74b5387 = UNSTREAM_STRING( &constant_bin[ 259833 ], 28, 0 );
|
|
const_str_plain__rel_sample = UNSTREAM_STRING( &constant_bin[ 259861 ], 11, 1 );
|
|
const_str_digest_c4c19ff50cb74a2bc0721a6b04341225 = UNSTREAM_STRING( &constant_bin[ 259872 ], 23, 0 );
|
|
const_tuple_5fed71172b5ab5fdaa99957ff12e9014_tuple = PyMarshal_ReadObjectFromString( (char *)&constant_bin[ 259895 ], 34613 );
|
|
const_str_plain__charset_name = UNSTREAM_STRING( &constant_bin[ 294508 ], 13, 1 );
|
|
const_str_plain__need_to_skip_char_num = UNSTREAM_STRING( &constant_bin[ 294521 ], 22, 1 );
|
|
const_str_digest_f169fb3a1f692d4c7beb725a93b6e18a = UNSTREAM_STRING( &constant_bin[ 294543 ], 29, 0 );
|
|
|
|
constants_created = true;
|
|
}
|
|
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
void checkModuleConstants_chardet$jpcntx( void )
|
|
{
|
|
// The module may not have been used at all.
|
|
if (constants_created == false) return;
|
|
|
|
|
|
}
|
|
#endif
|
|
|
|
// The module code objects.
|
|
static PyCodeObject *codeobj_78178c637b2ce9218f0071f6a2579fbf;
|
|
static PyCodeObject *codeobj_b8a09caac410d7d4675278a9bd7375d0;
|
|
static PyCodeObject *codeobj_556802167139cfa801f3190380f2bd63;
|
|
static PyCodeObject *codeobj_afeb2254c728faf07566a57a6f87faa2;
|
|
static PyCodeObject *codeobj_db082d16c12545443a3d1439fccc5b66;
|
|
static PyCodeObject *codeobj_59d61145b06a96b9f3ab0a013c750d6b;
|
|
static PyCodeObject *codeobj_778b9f9a430d5cc0f15e8d31b8f093f8;
|
|
static PyCodeObject *codeobj_a93f805310f04579f9dcae1fb586e734;
|
|
static PyCodeObject *codeobj_52a05a8fecf0de75cec3ce9ebeed728d;
|
|
static PyCodeObject *codeobj_3d556bd35ecf906e908ef4d050349865;
|
|
static PyCodeObject *codeobj_f5fdf241d2a263a39294e13f5f82cb60;
|
|
static PyCodeObject *codeobj_a76e695bf7205c278db03b927cb760e6;
|
|
static PyCodeObject *codeobj_c0f8fa9d87f0dc51bd58f37a99b943bb;
|
|
static PyCodeObject *codeobj_3ef62d606183c38214a0535f61a31069;
|
|
|
|
static void createModuleCodeObjects(void)
|
|
{
|
|
module_filename_obj = const_str_digest_9d45504aa41261df3b7d2bae86e8a8dc;
|
|
codeobj_78178c637b2ce9218f0071f6a2579fbf = MAKE_CODEOBJ( module_filename_obj, const_str_digest_c4c19ff50cb74a2bc0721a6b04341225, 1, const_tuple_empty, 0, 0, CO_NOFREE );
|
|
codeobj_b8a09caac410d7d4675278a9bd7375d0 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_EUCJPContextAnalysis, 212, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
|
|
codeobj_556802167139cfa801f3190380f2bd63 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_JapaneseContextAnalysis, 116, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
|
|
codeobj_afeb2254c728faf07566a57a6f87faa2 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_SJISContextAnalysis, 183, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
|
|
codeobj_db082d16c12545443a3d1439fccc5b66 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 123, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_59d61145b06a96b9f3ab0a013c750d6b = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 184, const_tuple_str_plain_self_str_plain___class___tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS );
|
|
codeobj_778b9f9a430d5cc0f15e8d31b8f093f8 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_charset_name, 188, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_a93f805310f04579f9dcae1fb586e734 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_feed, 143, const_tuple_8d64e34e39720a765d0edd2299c485e2_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_52a05a8fecf0de75cec3ce9ebeed728d = MAKE_CODEOBJ( module_filename_obj, const_str_plain_get_confidence, 173, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_3d556bd35ecf906e908ef4d050349865 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_get_order, 180, const_tuple_str_plain_self_str_plain_byte_str_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_f5fdf241d2a263a39294e13f5f82cb60 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_get_order, 192, const_tuple_697ffd6d5ebffd3b89b1995a446e536d_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_a76e695bf7205c278db03b927cb760e6 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_get_order, 213, const_tuple_697ffd6d5ebffd3b89b1995a446e536d_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_c0f8fa9d87f0dc51bd58f37a99b943bb = MAKE_CODEOBJ( module_filename_obj, const_str_plain_got_enough_data, 170, const_tuple_str_plain_self_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
|
|
codeobj_3ef62d606183c38214a0535f61a31069 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_reset, 131, const_tuple_str_plain_self_tuple, 1, 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_chardet$jpcntx$$$function_10_get_order( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_1___init__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_2_reset( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_3_feed( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_4_got_enough_data( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_5_get_confidence( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_6_get_order( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_7___init__( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_8_charset_name( );
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_9_get_order( );
|
|
|
|
|
|
// The module function definitions.
|
|
static PyObject *impl_chardet$jpcntx$$$function_1___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
|
|
{
|
|
// Preserve error status for checks
|
|
#ifndef __NUITKA_NO_ASSERT__
|
|
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
|
|
#endif
|
|
|
|
// Local variable declarations.
|
|
PyObject *par_self = python_pars[ 0 ];
|
|
struct Nuitka_FrameObject *frame_db082d16c12545443a3d1439fccc5b66;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
bool tmp_result;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
|
|
static struct Nuitka_FrameObject *cache_frame_db082d16c12545443a3d1439fccc5b66 = 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_db082d16c12545443a3d1439fccc5b66, codeobj_db082d16c12545443a3d1439fccc5b66, module_chardet$jpcntx, sizeof(void *) );
|
|
frame_db082d16c12545443a3d1439fccc5b66 = cache_frame_db082d16c12545443a3d1439fccc5b66;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_db082d16c12545443a3d1439fccc5b66 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_db082d16c12545443a3d1439fccc5b66 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_assattr_name_1;
|
|
PyObject *tmp_assattr_target_1;
|
|
tmp_assattr_name_1 = Py_None;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_assattr_target_1 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__total_rel, tmp_assattr_name_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 124;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_2;
|
|
PyObject *tmp_assattr_target_2;
|
|
tmp_assattr_name_2 = Py_None;
|
|
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 = 125;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_2 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain__rel_sample, tmp_assattr_name_2 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 125;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_3;
|
|
PyObject *tmp_assattr_target_3;
|
|
tmp_assattr_name_3 = Py_None;
|
|
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 = 126;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_3 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain__need_to_skip_char_num, tmp_assattr_name_3 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 126;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_4;
|
|
PyObject *tmp_assattr_target_4;
|
|
tmp_assattr_name_4 = Py_None;
|
|
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 = 127;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_4 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain__last_char_order, tmp_assattr_name_4 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 127;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_5;
|
|
PyObject *tmp_assattr_target_5;
|
|
tmp_assattr_name_5 = Py_None;
|
|
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 = 128;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_5 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_5, const_str_plain__done, tmp_assattr_name_5 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 128;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_called_instance_1;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 129;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_called_instance_1 = par_self;
|
|
frame_db082d16c12545443a3d1439fccc5b66->m_frame.f_lineno = 129;
|
|
tmp_unused = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_reset );
|
|
if ( tmp_unused == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 129;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_db082d16c12545443a3d1439fccc5b66 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_db082d16c12545443a3d1439fccc5b66 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_db082d16c12545443a3d1439fccc5b66, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_db082d16c12545443a3d1439fccc5b66->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_db082d16c12545443a3d1439fccc5b66, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_db082d16c12545443a3d1439fccc5b66,
|
|
type_description_1,
|
|
par_self
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_db082d16c12545443a3d1439fccc5b66 == cache_frame_db082d16c12545443a3d1439fccc5b66 )
|
|
{
|
|
Py_DECREF( frame_db082d16c12545443a3d1439fccc5b66 );
|
|
}
|
|
cache_frame_db082d16c12545443a3d1439fccc5b66 = NULL;
|
|
|
|
assertFrameObject( frame_db082d16c12545443a3d1439fccc5b66 );
|
|
|
|
// 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( chardet$jpcntx$$$function_1___init__ );
|
|
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( chardet$jpcntx$$$function_1___init__ );
|
|
return NULL;
|
|
|
|
function_exception_exit:
|
|
assert( exception_type );
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
|
|
return NULL;
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
static PyObject *impl_chardet$jpcntx$$$function_2_reset( 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_3ef62d606183c38214a0535f61a31069;
|
|
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_3ef62d606183c38214a0535f61a31069 = 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_3ef62d606183c38214a0535f61a31069, codeobj_3ef62d606183c38214a0535f61a31069, module_chardet$jpcntx, sizeof(void *) );
|
|
frame_3ef62d606183c38214a0535f61a31069 = cache_frame_3ef62d606183c38214a0535f61a31069;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_3ef62d606183c38214a0535f61a31069 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_3ef62d606183c38214a0535f61a31069 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_assattr_name_1;
|
|
PyObject *tmp_assattr_target_1;
|
|
tmp_assattr_name_1 = const_int_0;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_assattr_target_1 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__total_rel, tmp_assattr_name_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 132;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_2;
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_right_name_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_assattr_target_2;
|
|
tmp_left_name_1 = LIST_COPY( const_list_int_0_list );
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_left_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 134;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_1 = par_self;
|
|
tmp_right_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_NUM_OF_CATEGORY );
|
|
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 = 134;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_assattr_name_2 = BINARY_OPERATION_MUL( tmp_left_name_1, tmp_right_name_1 );
|
|
Py_DECREF( tmp_left_name_1 );
|
|
Py_DECREF( tmp_right_name_1 );
|
|
if ( tmp_assattr_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 134;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_assattr_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 134;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_2 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain__rel_sample, tmp_assattr_name_2 );
|
|
Py_DECREF( tmp_assattr_name_2 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 134;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_3;
|
|
PyObject *tmp_assattr_target_3;
|
|
tmp_assattr_name_3 = const_int_0;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 137;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_3 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain__need_to_skip_char_num, tmp_assattr_name_3 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 137;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_4;
|
|
PyObject *tmp_assattr_target_4;
|
|
tmp_assattr_name_4 = const_int_neg_1;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 138;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_4 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain__last_char_order, tmp_assattr_name_4 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 138;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_5;
|
|
PyObject *tmp_assattr_target_5;
|
|
tmp_assattr_name_5 = Py_False;
|
|
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 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_5 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_5, const_str_plain__done, tmp_assattr_name_5 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 141;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_3ef62d606183c38214a0535f61a31069 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_3ef62d606183c38214a0535f61a31069 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_3ef62d606183c38214a0535f61a31069, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_3ef62d606183c38214a0535f61a31069->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_3ef62d606183c38214a0535f61a31069, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_3ef62d606183c38214a0535f61a31069,
|
|
type_description_1,
|
|
par_self
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_3ef62d606183c38214a0535f61a31069 == cache_frame_3ef62d606183c38214a0535f61a31069 )
|
|
{
|
|
Py_DECREF( frame_3ef62d606183c38214a0535f61a31069 );
|
|
}
|
|
cache_frame_3ef62d606183c38214a0535f61a31069 = NULL;
|
|
|
|
assertFrameObject( frame_3ef62d606183c38214a0535f61a31069 );
|
|
|
|
// 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( chardet$jpcntx$$$function_2_reset );
|
|
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( chardet$jpcntx$$$function_2_reset );
|
|
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_chardet$jpcntx$$$function_3_feed( 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_byte_str = python_pars[ 1 ];
|
|
PyObject *par_num_bytes = python_pars[ 2 ];
|
|
PyObject *var_i = NULL;
|
|
PyObject *var_order = NULL;
|
|
PyObject *var_char_len = NULL;
|
|
PyObject *tmp_inplace_assign_attr_1__end = NULL;
|
|
PyObject *tmp_inplace_assign_attr_1__start = NULL;
|
|
PyObject *tmp_inplace_assign_subscr_1__subscript = NULL;
|
|
PyObject *tmp_inplace_assign_subscr_1__target = NULL;
|
|
PyObject *tmp_tuple_unpack_1__element_1 = NULL;
|
|
PyObject *tmp_tuple_unpack_1__element_2 = NULL;
|
|
PyObject *tmp_tuple_unpack_1__source_iter = NULL;
|
|
struct Nuitka_FrameObject *frame_a93f805310f04579f9dcae1fb586e734;
|
|
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;
|
|
int tmp_res;
|
|
PyObject *tmp_iterator_attempt;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
PyObject *exception_keeper_type_2;
|
|
PyObject *exception_keeper_value_2;
|
|
PyTracebackObject *exception_keeper_tb_2;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
|
|
bool tmp_result;
|
|
PyObject *exception_keeper_type_3;
|
|
PyObject *exception_keeper_value_3;
|
|
PyTracebackObject *exception_keeper_tb_3;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
|
|
PyObject *exception_keeper_type_4;
|
|
PyObject *exception_keeper_value_4;
|
|
PyTracebackObject *exception_keeper_tb_4;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
|
|
PyObject *exception_keeper_type_5;
|
|
PyObject *exception_keeper_value_5;
|
|
PyTracebackObject *exception_keeper_tb_5;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5;
|
|
static struct Nuitka_FrameObject *cache_frame_a93f805310f04579f9dcae1fb586e734 = NULL;
|
|
PyObject *exception_keeper_type_6;
|
|
PyObject *exception_keeper_value_6;
|
|
PyTracebackObject *exception_keeper_tb_6;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_6;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_a93f805310f04579f9dcae1fb586e734, codeobj_a93f805310f04579f9dcae1fb586e734, module_chardet$jpcntx, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_a93f805310f04579f9dcae1fb586e734 = cache_frame_a93f805310f04579f9dcae1fb586e734;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_a93f805310f04579f9dcae1fb586e734 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_a93f805310f04579f9dcae1fb586e734 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_attribute_value_1;
|
|
int tmp_truth_name_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__done );
|
|
if ( tmp_attribute_value_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 144;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_attribute_value_1 );
|
|
if ( tmp_truth_name_1 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_attribute_value_1 );
|
|
|
|
exception_lineno = 144;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
Py_DECREF( tmp_attribute_value_1 );
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
tmp_return_value = Py_None;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_source_name_2;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 154;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_2 = par_self;
|
|
tmp_assign_source_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain__need_to_skip_char_num );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 154;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_i == NULL );
|
|
var_i = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
loop_start_1:;
|
|
{
|
|
nuitka_bool tmp_condition_result_2;
|
|
PyObject *tmp_operand_name_1;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
if ( var_i == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 155;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_left_1 = var_i;
|
|
if ( par_num_bytes == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "num_bytes" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 155;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_right_1 = par_num_bytes;
|
|
tmp_operand_name_1 = RICH_COMPARE_LT( tmp_compexpr_left_1, tmp_compexpr_right_1 );
|
|
if ( tmp_operand_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 155;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
|
|
Py_DECREF( tmp_operand_name_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 155;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_2 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_2;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_2;
|
|
}
|
|
branch_yes_2:;
|
|
{
|
|
goto loop_end_1;
|
|
}
|
|
branch_no_2:;
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
PyObject *tmp_iter_arg_1;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_3;
|
|
PyObject *tmp_args_element_name_1;
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_subscript_name_1;
|
|
PyObject *tmp_start_name_1;
|
|
PyObject *tmp_stop_name_1;
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_right_name_1;
|
|
PyObject *tmp_step_name_1;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_source_name_3 = par_self;
|
|
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_get_order );
|
|
if ( tmp_called_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
if ( par_byte_str == 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", "byte_str" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_subscribed_name_1 = par_byte_str;
|
|
if ( var_i == 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", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_start_name_1 = var_i;
|
|
if ( var_i == 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", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_left_name_1 = var_i;
|
|
tmp_right_name_1 = const_int_pos_2;
|
|
tmp_stop_name_1 = BINARY_OPERATION_ADD( tmp_left_name_1, tmp_right_name_1 );
|
|
if ( tmp_stop_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_step_name_1 = Py_None;
|
|
tmp_subscript_name_1 = MAKE_SLICEOBJ3( tmp_start_name_1, tmp_stop_name_1, tmp_step_name_1 );
|
|
Py_DECREF( tmp_stop_name_1 );
|
|
assert( !(tmp_subscript_name_1 == NULL) );
|
|
tmp_args_element_name_1 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 );
|
|
Py_DECREF( tmp_subscript_name_1 );
|
|
if ( tmp_args_element_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_called_name_1 );
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
frame_a93f805310f04579f9dcae1fb586e734->m_frame.f_lineno = 156;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_iter_arg_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_1 );
|
|
Py_DECREF( tmp_args_element_name_1 );
|
|
if ( tmp_iter_arg_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
tmp_assign_source_2 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_1 );
|
|
Py_DECREF( tmp_iter_arg_1 );
|
|
if ( tmp_assign_source_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 156;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
{
|
|
PyObject *old = tmp_tuple_unpack_1__source_iter;
|
|
tmp_tuple_unpack_1__source_iter = tmp_assign_source_2;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_3;
|
|
PyObject *tmp_unpack_1;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
|
|
tmp_unpack_1 = tmp_tuple_unpack_1__source_iter;
|
|
tmp_assign_source_3 = UNPACK_NEXT( tmp_unpack_1, 0, 2 );
|
|
if ( tmp_assign_source_3 == NULL )
|
|
{
|
|
if ( !ERROR_OCCURRED() )
|
|
{
|
|
exception_type = PyExc_StopIteration;
|
|
Py_INCREF( exception_type );
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
}
|
|
else
|
|
{
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
}
|
|
|
|
|
|
type_description_1 = "oooooo";
|
|
exception_lineno = 156;
|
|
goto try_except_handler_3;
|
|
}
|
|
{
|
|
PyObject *old = tmp_tuple_unpack_1__element_1;
|
|
tmp_tuple_unpack_1__element_1 = tmp_assign_source_3;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
PyObject *tmp_unpack_2;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
|
|
tmp_unpack_2 = tmp_tuple_unpack_1__source_iter;
|
|
tmp_assign_source_4 = UNPACK_NEXT( tmp_unpack_2, 1, 2 );
|
|
if ( tmp_assign_source_4 == NULL )
|
|
{
|
|
if ( !ERROR_OCCURRED() )
|
|
{
|
|
exception_type = PyExc_StopIteration;
|
|
Py_INCREF( exception_type );
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
}
|
|
else
|
|
{
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
}
|
|
|
|
|
|
type_description_1 = "oooooo";
|
|
exception_lineno = 156;
|
|
goto try_except_handler_3;
|
|
}
|
|
{
|
|
PyObject *old = tmp_tuple_unpack_1__element_2;
|
|
tmp_tuple_unpack_1__element_2 = tmp_assign_source_4;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_iterator_name_1;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__source_iter );
|
|
tmp_iterator_name_1 = tmp_tuple_unpack_1__source_iter;
|
|
// Check if iterator has left-over elements.
|
|
CHECK_OBJECT( tmp_iterator_name_1 ); assert( HAS_ITERNEXT( tmp_iterator_name_1 ) );
|
|
|
|
tmp_iterator_attempt = (*Py_TYPE( tmp_iterator_name_1 )->tp_iternext)( tmp_iterator_name_1 );
|
|
|
|
if (likely( tmp_iterator_attempt == NULL ))
|
|
{
|
|
PyObject *error = GET_ERROR_OCCURRED();
|
|
|
|
if ( error != NULL )
|
|
{
|
|
if ( EXCEPTION_MATCH_BOOL_SINGLE( error, PyExc_StopIteration ))
|
|
{
|
|
CLEAR_ERROR_OCCURRED();
|
|
}
|
|
else
|
|
{
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
type_description_1 = "oooooo";
|
|
exception_lineno = 156;
|
|
goto try_except_handler_3;
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
Py_DECREF( tmp_iterator_attempt );
|
|
|
|
// TODO: Could avoid PyErr_Format.
|
|
#if PYTHON_VERSION < 300
|
|
PyErr_Format( PyExc_ValueError, "too many values to unpack" );
|
|
#else
|
|
PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" );
|
|
#endif
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
type_description_1 = "oooooo";
|
|
exception_lineno = 156;
|
|
goto try_except_handler_3;
|
|
}
|
|
}
|
|
goto try_end_1;
|
|
// Exception handler code:
|
|
try_except_handler_3:;
|
|
exception_keeper_type_1 = exception_type;
|
|
exception_keeper_value_1 = exception_value;
|
|
exception_keeper_tb_1 = exception_tb;
|
|
exception_keeper_lineno_1 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
|
|
Py_DECREF( tmp_tuple_unpack_1__source_iter );
|
|
tmp_tuple_unpack_1__source_iter = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
// End of try:
|
|
try_end_1:;
|
|
}
|
|
goto try_end_2;
|
|
// Exception handler code:
|
|
try_except_handler_2:;
|
|
exception_keeper_type_2 = exception_type;
|
|
exception_keeper_value_2 = exception_value;
|
|
exception_keeper_tb_2 = exception_tb;
|
|
exception_keeper_lineno_2 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
|
|
tmp_tuple_unpack_1__element_1 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
|
|
tmp_tuple_unpack_1__element_2 = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_2;
|
|
exception_value = exception_keeper_value_2;
|
|
exception_tb = exception_keeper_tb_2;
|
|
exception_lineno = exception_keeper_lineno_2;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_2:;
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_tuple_unpack_1__source_iter );
|
|
Py_DECREF( tmp_tuple_unpack_1__source_iter );
|
|
tmp_tuple_unpack_1__source_iter = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__element_1 );
|
|
tmp_assign_source_5 = tmp_tuple_unpack_1__element_1;
|
|
{
|
|
PyObject *old = var_order;
|
|
var_order = tmp_assign_source_5;
|
|
Py_INCREF( var_order );
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_1 );
|
|
tmp_tuple_unpack_1__element_1 = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_6;
|
|
CHECK_OBJECT( tmp_tuple_unpack_1__element_2 );
|
|
tmp_assign_source_6 = tmp_tuple_unpack_1__element_2;
|
|
{
|
|
PyObject *old = var_char_len;
|
|
var_char_len = tmp_assign_source_6;
|
|
Py_INCREF( var_char_len );
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_tuple_unpack_1__element_2 );
|
|
tmp_tuple_unpack_1__element_2 = NULL;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_7;
|
|
PyObject *tmp_left_name_2;
|
|
PyObject *tmp_right_name_2;
|
|
if ( var_i == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 157;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_left_name_2 = var_i;
|
|
if ( var_char_len == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "char_len" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 157;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_right_name_2 = var_char_len;
|
|
tmp_result = BINARY_OPERATION_ADD_OBJECT_OBJECT_INPLACE( &tmp_left_name_2, tmp_right_name_2 );
|
|
tmp_assign_source_7 = tmp_left_name_2;
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 157;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
var_i = tmp_assign_source_7;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_3;
|
|
PyObject *tmp_compexpr_left_2;
|
|
PyObject *tmp_compexpr_right_2;
|
|
CHECK_OBJECT( var_i );
|
|
tmp_compexpr_left_2 = var_i;
|
|
if ( par_num_bytes == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "num_bytes" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 158;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_right_2 = par_num_bytes;
|
|
tmp_res = RICH_COMPARE_BOOL_GT( 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 = 158;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
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_assattr_name_1;
|
|
PyObject *tmp_left_name_3;
|
|
PyObject *tmp_right_name_3;
|
|
PyObject *tmp_assattr_target_1;
|
|
if ( var_i == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "i" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 159;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_left_name_3 = var_i;
|
|
if ( par_num_bytes == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "num_bytes" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 159;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_right_name_3 = par_num_bytes;
|
|
tmp_assattr_name_1 = BINARY_OPERATION_SUB( tmp_left_name_3, tmp_right_name_3 );
|
|
if ( tmp_assattr_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 159;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_assattr_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 159;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_1 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__need_to_skip_char_num, tmp_assattr_name_1 );
|
|
Py_DECREF( tmp_assattr_name_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 159;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_2;
|
|
PyObject *tmp_assattr_target_2;
|
|
tmp_assattr_name_2 = const_int_neg_1;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 160;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_2 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain__last_char_order, tmp_assattr_name_2 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 160;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
goto branch_end_3;
|
|
branch_no_3:;
|
|
{
|
|
nuitka_bool tmp_condition_result_4;
|
|
int tmp_and_left_truth_1;
|
|
nuitka_bool tmp_and_left_value_1;
|
|
nuitka_bool tmp_and_right_value_1;
|
|
PyObject *tmp_compexpr_left_3;
|
|
PyObject *tmp_compexpr_right_3;
|
|
PyObject *tmp_compexpr_left_4;
|
|
PyObject *tmp_compexpr_right_4;
|
|
PyObject *tmp_source_name_4;
|
|
if ( var_order == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "order" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 162;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_left_3 = var_order;
|
|
tmp_compexpr_right_3 = const_int_neg_1;
|
|
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 = 162;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_and_left_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
|
|
if ( tmp_and_left_truth_1 == 1 )
|
|
{
|
|
goto and_right_1;
|
|
}
|
|
else
|
|
{
|
|
goto and_left_1;
|
|
}
|
|
and_right_1:;
|
|
if ( 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 = 162;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_4 = par_self;
|
|
tmp_compexpr_left_4 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain__last_char_order );
|
|
if ( tmp_compexpr_left_4 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 162;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_compexpr_right_4 = const_int_neg_1;
|
|
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_4, tmp_compexpr_right_4 );
|
|
Py_DECREF( tmp_compexpr_left_4 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 162;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_and_right_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
tmp_condition_result_4 = tmp_and_right_value_1;
|
|
goto and_end_1;
|
|
and_left_1:;
|
|
tmp_condition_result_4 = tmp_and_left_value_1;
|
|
and_end_1:;
|
|
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_4;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_4;
|
|
}
|
|
branch_yes_4:;
|
|
{
|
|
PyObject *tmp_assign_source_8;
|
|
PyObject *tmp_source_name_5;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 163;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_5 = par_self;
|
|
tmp_assign_source_8 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain__total_rel );
|
|
if ( tmp_assign_source_8 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 163;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
{
|
|
PyObject *old = tmp_inplace_assign_attr_1__start;
|
|
tmp_inplace_assign_attr_1__start = tmp_assign_source_8;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_9;
|
|
PyObject *tmp_left_name_4;
|
|
PyObject *tmp_right_name_4;
|
|
CHECK_OBJECT( tmp_inplace_assign_attr_1__start );
|
|
tmp_left_name_4 = tmp_inplace_assign_attr_1__start;
|
|
tmp_right_name_4 = const_int_pos_1;
|
|
tmp_assign_source_9 = BINARY_OPERATION( PyNumber_InPlaceAdd, tmp_left_name_4, tmp_right_name_4 );
|
|
if ( tmp_assign_source_9 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 163;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_4;
|
|
}
|
|
{
|
|
PyObject *old = tmp_inplace_assign_attr_1__end;
|
|
tmp_inplace_assign_attr_1__end = tmp_assign_source_9;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assattr_name_3;
|
|
PyObject *tmp_assattr_target_3;
|
|
CHECK_OBJECT( tmp_inplace_assign_attr_1__end );
|
|
tmp_assattr_name_3 = tmp_inplace_assign_attr_1__end;
|
|
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 = 163;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_5;
|
|
}
|
|
|
|
tmp_assattr_target_3 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain__total_rel, tmp_assattr_name_3 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 163;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_5;
|
|
}
|
|
}
|
|
goto try_end_3;
|
|
// Exception handler code:
|
|
try_except_handler_5:;
|
|
exception_keeper_type_3 = exception_type;
|
|
exception_keeper_value_3 = exception_value;
|
|
exception_keeper_tb_3 = exception_tb;
|
|
exception_keeper_lineno_3 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_inplace_assign_attr_1__end );
|
|
Py_DECREF( tmp_inplace_assign_attr_1__end );
|
|
tmp_inplace_assign_attr_1__end = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_3;
|
|
exception_value = exception_keeper_value_3;
|
|
exception_tb = exception_keeper_tb_3;
|
|
exception_lineno = exception_keeper_lineno_3;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
// End of try:
|
|
try_end_3:;
|
|
}
|
|
goto try_end_4;
|
|
// Exception handler code:
|
|
try_except_handler_4:;
|
|
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;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_inplace_assign_attr_1__start );
|
|
Py_DECREF( tmp_inplace_assign_attr_1__start );
|
|
tmp_inplace_assign_attr_1__start = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_4;
|
|
exception_value = exception_keeper_value_4;
|
|
exception_tb = exception_keeper_tb_4;
|
|
exception_lineno = exception_keeper_lineno_4;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_4:;
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_inplace_assign_attr_1__end );
|
|
Py_DECREF( tmp_inplace_assign_attr_1__end );
|
|
tmp_inplace_assign_attr_1__end = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_inplace_assign_attr_1__start );
|
|
Py_DECREF( tmp_inplace_assign_attr_1__start );
|
|
tmp_inplace_assign_attr_1__start = NULL;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_5;
|
|
PyObject *tmp_compexpr_left_5;
|
|
PyObject *tmp_compexpr_right_5;
|
|
PyObject *tmp_source_name_6;
|
|
PyObject *tmp_source_name_7;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 164;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_6 = par_self;
|
|
tmp_compexpr_left_5 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain__total_rel );
|
|
if ( tmp_compexpr_left_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 164;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_compexpr_left_5 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 164;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_7 = par_self;
|
|
tmp_compexpr_right_5 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_MAX_REL_THRESHOLD );
|
|
if ( tmp_compexpr_right_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_compexpr_left_5 );
|
|
|
|
exception_lineno = 164;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = RICH_COMPARE_BOOL_GT( tmp_compexpr_left_5, tmp_compexpr_right_5 );
|
|
Py_DECREF( tmp_compexpr_left_5 );
|
|
Py_DECREF( tmp_compexpr_right_5 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 164;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_5 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_5;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_5;
|
|
}
|
|
branch_yes_5:;
|
|
{
|
|
PyObject *tmp_assattr_name_4;
|
|
PyObject *tmp_assattr_target_4;
|
|
tmp_assattr_name_4 = Py_True;
|
|
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 = 165;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_4 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain__done, tmp_assattr_name_4 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 165;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
{
|
|
goto loop_end_1;
|
|
}
|
|
branch_no_5:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_10;
|
|
PyObject *tmp_source_name_8;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_8 = par_self;
|
|
tmp_assign_source_10 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain__rel_sample );
|
|
if ( tmp_assign_source_10 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
{
|
|
PyObject *old = tmp_inplace_assign_subscr_1__target;
|
|
tmp_inplace_assign_subscr_1__target = tmp_assign_source_10;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_11;
|
|
PyObject *tmp_subscribed_name_2;
|
|
PyObject *tmp_subscribed_name_3;
|
|
PyObject *tmp_mvar_value_1;
|
|
PyObject *tmp_subscript_name_2;
|
|
PyObject *tmp_source_name_9;
|
|
PyObject *tmp_subscript_name_3;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain_jp2CharContext );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_jp2CharContext );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "jp2CharContext" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_6;
|
|
}
|
|
|
|
tmp_subscribed_name_3 = tmp_mvar_value_1;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_6;
|
|
}
|
|
|
|
tmp_source_name_9 = par_self;
|
|
tmp_subscript_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain__last_char_order );
|
|
if ( tmp_subscript_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_6;
|
|
}
|
|
tmp_subscribed_name_2 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_3, tmp_subscript_name_2 );
|
|
Py_DECREF( tmp_subscript_name_2 );
|
|
if ( tmp_subscribed_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_6;
|
|
}
|
|
if ( var_order == NULL )
|
|
{
|
|
Py_DECREF( tmp_subscribed_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "order" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_6;
|
|
}
|
|
|
|
tmp_subscript_name_3 = var_order;
|
|
tmp_assign_source_11 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_2, tmp_subscript_name_3 );
|
|
Py_DECREF( tmp_subscribed_name_2 );
|
|
if ( tmp_assign_source_11 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_6;
|
|
}
|
|
{
|
|
PyObject *old = tmp_inplace_assign_subscr_1__subscript;
|
|
tmp_inplace_assign_subscr_1__subscript = tmp_assign_source_11;
|
|
Py_XDECREF( old );
|
|
}
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_ass_subvalue_1;
|
|
PyObject *tmp_left_name_5;
|
|
PyObject *tmp_subscribed_name_4;
|
|
PyObject *tmp_subscript_name_4;
|
|
PyObject *tmp_right_name_5;
|
|
PyObject *tmp_ass_subscribed_1;
|
|
PyObject *tmp_ass_subscript_1;
|
|
CHECK_OBJECT( tmp_inplace_assign_subscr_1__target );
|
|
tmp_subscribed_name_4 = tmp_inplace_assign_subscr_1__target;
|
|
CHECK_OBJECT( tmp_inplace_assign_subscr_1__subscript );
|
|
tmp_subscript_name_4 = tmp_inplace_assign_subscr_1__subscript;
|
|
tmp_left_name_5 = LOOKUP_SUBSCRIPT( tmp_subscribed_name_4, tmp_subscript_name_4 );
|
|
if ( tmp_left_name_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_6;
|
|
}
|
|
tmp_right_name_5 = const_int_pos_1;
|
|
tmp_ass_subvalue_1 = BINARY_OPERATION( PyNumber_InPlaceAdd, tmp_left_name_5, tmp_right_name_5 );
|
|
Py_DECREF( tmp_left_name_5 );
|
|
if ( tmp_ass_subvalue_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_6;
|
|
}
|
|
CHECK_OBJECT( tmp_inplace_assign_subscr_1__target );
|
|
tmp_ass_subscribed_1 = tmp_inplace_assign_subscr_1__target;
|
|
CHECK_OBJECT( tmp_inplace_assign_subscr_1__subscript );
|
|
tmp_ass_subscript_1 = tmp_inplace_assign_subscr_1__subscript;
|
|
tmp_result = SET_SUBSCRIPT( tmp_ass_subscribed_1, tmp_ass_subscript_1, tmp_ass_subvalue_1 );
|
|
Py_DECREF( tmp_ass_subvalue_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 167;
|
|
type_description_1 = "oooooo";
|
|
goto try_except_handler_6;
|
|
}
|
|
}
|
|
goto try_end_5;
|
|
// Exception handler code:
|
|
try_except_handler_6:;
|
|
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;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_inplace_assign_subscr_1__target );
|
|
Py_DECREF( tmp_inplace_assign_subscr_1__target );
|
|
tmp_inplace_assign_subscr_1__target = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_inplace_assign_subscr_1__subscript );
|
|
tmp_inplace_assign_subscr_1__subscript = 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 frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_5:;
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_inplace_assign_subscr_1__target );
|
|
Py_DECREF( tmp_inplace_assign_subscr_1__target );
|
|
tmp_inplace_assign_subscr_1__target = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_inplace_assign_subscr_1__subscript );
|
|
Py_DECREF( tmp_inplace_assign_subscr_1__subscript );
|
|
tmp_inplace_assign_subscr_1__subscript = NULL;
|
|
|
|
}
|
|
branch_no_4:;
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_5;
|
|
PyObject *tmp_assattr_target_5;
|
|
if ( var_order == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "order" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 168;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_name_5 = var_order;
|
|
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 = 168;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_5 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_5, const_str_plain__last_char_order, tmp_assattr_name_5 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 168;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
branch_end_3:;
|
|
}
|
|
if ( CONSIDER_THREADING() == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 155;
|
|
type_description_1 = "oooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto loop_start_1;
|
|
loop_end_1:;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_a93f805310f04579f9dcae1fb586e734 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_a93f805310f04579f9dcae1fb586e734 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_a93f805310f04579f9dcae1fb586e734 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_a93f805310f04579f9dcae1fb586e734, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_a93f805310f04579f9dcae1fb586e734->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_a93f805310f04579f9dcae1fb586e734, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_a93f805310f04579f9dcae1fb586e734,
|
|
type_description_1,
|
|
par_self,
|
|
par_byte_str,
|
|
par_num_bytes,
|
|
var_i,
|
|
var_order,
|
|
var_char_len
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_a93f805310f04579f9dcae1fb586e734 == cache_frame_a93f805310f04579f9dcae1fb586e734 )
|
|
{
|
|
Py_DECREF( frame_a93f805310f04579f9dcae1fb586e734 );
|
|
}
|
|
cache_frame_a93f805310f04579f9dcae1fb586e734 = NULL;
|
|
|
|
assertFrameObject( frame_a93f805310f04579f9dcae1fb586e734 );
|
|
|
|
// 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( chardet$jpcntx$$$function_3_feed );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_byte_str );
|
|
par_byte_str = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_num_bytes );
|
|
par_num_bytes = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_i );
|
|
var_i = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_order );
|
|
var_order = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_char_len );
|
|
var_char_len = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_1:;
|
|
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;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_byte_str );
|
|
par_byte_str = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_num_bytes );
|
|
par_num_bytes = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_i );
|
|
var_i = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_order );
|
|
var_order = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_char_len );
|
|
var_char_len = NULL;
|
|
|
|
}
|
|
{
|
|
// 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 function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_3_feed );
|
|
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_chardet$jpcntx$$$function_4_got_enough_data( 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_c0f8fa9d87f0dc51bd58f37a99b943bb;
|
|
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_c0f8fa9d87f0dc51bd58f37a99b943bb = 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_c0f8fa9d87f0dc51bd58f37a99b943bb, codeobj_c0f8fa9d87f0dc51bd58f37a99b943bb, module_chardet$jpcntx, sizeof(void *) );
|
|
frame_c0f8fa9d87f0dc51bd58f37a99b943bb = cache_frame_c0f8fa9d87f0dc51bd58f37a99b943bb;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_c0f8fa9d87f0dc51bd58f37a99b943bb );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_c0f8fa9d87f0dc51bd58f37a99b943bb ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_source_name_2;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__total_rel );
|
|
if ( tmp_compexpr_left_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 171;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_compexpr_left_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 171;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_2 = par_self;
|
|
tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_ENOUGH_REL_THRESHOLD );
|
|
if ( tmp_compexpr_right_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_compexpr_left_1 );
|
|
|
|
exception_lineno = 171;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_return_value = RICH_COMPARE_GT( tmp_compexpr_left_1, tmp_compexpr_right_1 );
|
|
Py_DECREF( tmp_compexpr_left_1 );
|
|
Py_DECREF( tmp_compexpr_right_1 );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 171;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c0f8fa9d87f0dc51bd58f37a99b943bb );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c0f8fa9d87f0dc51bd58f37a99b943bb );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_c0f8fa9d87f0dc51bd58f37a99b943bb );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_c0f8fa9d87f0dc51bd58f37a99b943bb, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_c0f8fa9d87f0dc51bd58f37a99b943bb->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_c0f8fa9d87f0dc51bd58f37a99b943bb, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_c0f8fa9d87f0dc51bd58f37a99b943bb,
|
|
type_description_1,
|
|
par_self
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_c0f8fa9d87f0dc51bd58f37a99b943bb == cache_frame_c0f8fa9d87f0dc51bd58f37a99b943bb )
|
|
{
|
|
Py_DECREF( frame_c0f8fa9d87f0dc51bd58f37a99b943bb );
|
|
}
|
|
cache_frame_c0f8fa9d87f0dc51bd58f37a99b943bb = NULL;
|
|
|
|
assertFrameObject( frame_c0f8fa9d87f0dc51bd58f37a99b943bb );
|
|
|
|
// 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( chardet$jpcntx$$$function_4_got_enough_data );
|
|
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( chardet$jpcntx$$$function_4_got_enough_data );
|
|
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_chardet$jpcntx$$$function_5_get_confidence( 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_52a05a8fecf0de75cec3ce9ebeed728d;
|
|
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 *tmp_return_value = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_52a05a8fecf0de75cec3ce9ebeed728d = 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_52a05a8fecf0de75cec3ce9ebeed728d, codeobj_52a05a8fecf0de75cec3ce9ebeed728d, module_chardet$jpcntx, sizeof(void *) );
|
|
frame_52a05a8fecf0de75cec3ce9ebeed728d = cache_frame_52a05a8fecf0de75cec3ce9ebeed728d;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_52a05a8fecf0de75cec3ce9ebeed728d );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_52a05a8fecf0de75cec3ce9ebeed728d ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
PyObject *tmp_source_name_1;
|
|
PyObject *tmp_source_name_2;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__total_rel );
|
|
if ( tmp_compexpr_left_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 175;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_compexpr_left_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 175;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_2 = par_self;
|
|
tmp_compexpr_right_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_MINIMUM_DATA_THRESHOLD );
|
|
if ( tmp_compexpr_right_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_compexpr_left_1 );
|
|
|
|
exception_lineno = 175;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_res = RICH_COMPARE_BOOL_GT( tmp_compexpr_left_1, tmp_compexpr_right_1 );
|
|
Py_DECREF( tmp_compexpr_left_1 );
|
|
Py_DECREF( tmp_compexpr_right_1 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 175;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_1;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_1;
|
|
}
|
|
branch_yes_1:;
|
|
{
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_left_name_2;
|
|
PyObject *tmp_source_name_3;
|
|
PyObject *tmp_right_name_1;
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_source_name_4;
|
|
PyObject *tmp_subscript_name_1;
|
|
PyObject *tmp_right_name_2;
|
|
PyObject *tmp_source_name_5;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 176;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_3 = par_self;
|
|
tmp_left_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain__total_rel );
|
|
if ( tmp_left_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 176;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_left_name_2 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 176;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_4 = par_self;
|
|
tmp_subscribed_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain__rel_sample );
|
|
if ( tmp_subscribed_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_left_name_2 );
|
|
|
|
exception_lineno = 176;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_subscript_name_1 = const_int_0;
|
|
tmp_right_name_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 );
|
|
Py_DECREF( tmp_subscribed_name_1 );
|
|
if ( tmp_right_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_left_name_2 );
|
|
|
|
exception_lineno = 176;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_left_name_1 = BINARY_OPERATION_SUB( tmp_left_name_2, tmp_right_name_1 );
|
|
Py_DECREF( tmp_left_name_2 );
|
|
Py_DECREF( tmp_right_name_1 );
|
|
if ( tmp_left_name_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 176;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
if ( par_self == NULL )
|
|
{
|
|
Py_DECREF( tmp_left_name_1 );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 176;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_5 = par_self;
|
|
tmp_right_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain__total_rel );
|
|
if ( tmp_right_name_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_left_name_1 );
|
|
|
|
exception_lineno = 176;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_return_value = BINARY_OPERATION_TRUEDIV( tmp_left_name_1, tmp_right_name_2 );
|
|
Py_DECREF( tmp_left_name_1 );
|
|
Py_DECREF( tmp_right_name_2 );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 176;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
goto branch_end_1;
|
|
branch_no_1:;
|
|
{
|
|
PyObject *tmp_source_name_6;
|
|
if ( par_self == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 178;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_source_name_6 = par_self;
|
|
tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_DONT_KNOW );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 178;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_end_1:;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_52a05a8fecf0de75cec3ce9ebeed728d );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_52a05a8fecf0de75cec3ce9ebeed728d );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_52a05a8fecf0de75cec3ce9ebeed728d );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_52a05a8fecf0de75cec3ce9ebeed728d, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_52a05a8fecf0de75cec3ce9ebeed728d->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_52a05a8fecf0de75cec3ce9ebeed728d, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_52a05a8fecf0de75cec3ce9ebeed728d,
|
|
type_description_1,
|
|
par_self
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_52a05a8fecf0de75cec3ce9ebeed728d == cache_frame_52a05a8fecf0de75cec3ce9ebeed728d )
|
|
{
|
|
Py_DECREF( frame_52a05a8fecf0de75cec3ce9ebeed728d );
|
|
}
|
|
cache_frame_52a05a8fecf0de75cec3ce9ebeed728d = NULL;
|
|
|
|
assertFrameObject( frame_52a05a8fecf0de75cec3ce9ebeed728d );
|
|
|
|
// 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( chardet$jpcntx$$$function_5_get_confidence );
|
|
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( chardet$jpcntx$$$function_5_get_confidence );
|
|
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_chardet$jpcntx$$$function_6_get_order( 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_byte_str = python_pars[ 1 ];
|
|
PyObject *tmp_return_value = NULL;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_return_value = const_tuple_int_neg_1_int_pos_1_tuple;
|
|
Py_INCREF( tmp_return_value );
|
|
goto try_return_handler_1;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_6_get_order );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)par_self );
|
|
Py_DECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_byte_str );
|
|
par_byte_str = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_6_get_order );
|
|
return NULL;
|
|
|
|
function_return_exit:
|
|
|
|
CHECK_OBJECT( tmp_return_value );
|
|
assert( had_error || !ERROR_OCCURRED() );
|
|
return tmp_return_value;
|
|
|
|
}
|
|
|
|
|
|
static PyObject *impl_chardet$jpcntx$$$function_7___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 ];
|
|
struct Nuitka_FrameObject *frame_59d61145b06a96b9f3ab0a013c750d6b;
|
|
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;
|
|
bool tmp_result;
|
|
static struct Nuitka_FrameObject *cache_frame_59d61145b06a96b9f3ab0a013c750d6b = 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_59d61145b06a96b9f3ab0a013c750d6b, codeobj_59d61145b06a96b9f3ab0a013c750d6b, module_chardet$jpcntx, sizeof(void *)+sizeof(void *) );
|
|
frame_59d61145b06a96b9f3ab0a013c750d6b = cache_frame_59d61145b06a96b9f3ab0a013c750d6b;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_59d61145b06a96b9f3ab0a013c750d6b );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_59d61145b06a96b9f3ab0a013c750d6b ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_called_instance_1;
|
|
PyObject *tmp_type_name_1;
|
|
PyObject *tmp_mvar_value_1;
|
|
PyObject *tmp_object_name_1;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain_SJISContextAnalysis );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_SJISContextAnalysis );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "SJISContextAnalysis" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 185;
|
|
type_description_1 = "oN";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_type_name_1 = tmp_mvar_value_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_object_name_1 = par_self;
|
|
tmp_called_instance_1 = BUILTIN_SUPER( tmp_type_name_1, tmp_object_name_1 );
|
|
if ( tmp_called_instance_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 185;
|
|
type_description_1 = "oN";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
frame_59d61145b06a96b9f3ab0a013c750d6b->m_frame.f_lineno = 185;
|
|
tmp_unused = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain___init__ );
|
|
Py_DECREF( tmp_called_instance_1 );
|
|
if ( tmp_unused == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 185;
|
|
type_description_1 = "oN";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
Py_DECREF( tmp_unused );
|
|
}
|
|
{
|
|
PyObject *tmp_assattr_name_1;
|
|
PyObject *tmp_assattr_target_1;
|
|
tmp_assattr_name_1 = const_str_plain_SHIFT_JIS;
|
|
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 = 186;
|
|
type_description_1 = "oN";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_1 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__charset_name, tmp_assattr_name_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 186;
|
|
type_description_1 = "oN";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_59d61145b06a96b9f3ab0a013c750d6b );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_59d61145b06a96b9f3ab0a013c750d6b );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_59d61145b06a96b9f3ab0a013c750d6b, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_59d61145b06a96b9f3ab0a013c750d6b->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_59d61145b06a96b9f3ab0a013c750d6b, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_59d61145b06a96b9f3ab0a013c750d6b,
|
|
type_description_1,
|
|
par_self,
|
|
NULL
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_59d61145b06a96b9f3ab0a013c750d6b == cache_frame_59d61145b06a96b9f3ab0a013c750d6b )
|
|
{
|
|
Py_DECREF( frame_59d61145b06a96b9f3ab0a013c750d6b );
|
|
}
|
|
cache_frame_59d61145b06a96b9f3ab0a013c750d6b = NULL;
|
|
|
|
assertFrameObject( frame_59d61145b06a96b9f3ab0a013c750d6b );
|
|
|
|
// 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( chardet$jpcntx$$$function_7___init__ );
|
|
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( chardet$jpcntx$$$function_7___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_chardet$jpcntx$$$function_8_charset_name( 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_778b9f9a430d5cc0f15e8d31b8f093f8;
|
|
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_778b9f9a430d5cc0f15e8d31b8f093f8 = 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_778b9f9a430d5cc0f15e8d31b8f093f8, codeobj_778b9f9a430d5cc0f15e8d31b8f093f8, module_chardet$jpcntx, sizeof(void *) );
|
|
frame_778b9f9a430d5cc0f15e8d31b8f093f8 = cache_frame_778b9f9a430d5cc0f15e8d31b8f093f8;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_778b9f9a430d5cc0f15e8d31b8f093f8 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_778b9f9a430d5cc0f15e8d31b8f093f8 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
PyObject *tmp_source_name_1;
|
|
CHECK_OBJECT( par_self );
|
|
tmp_source_name_1 = par_self;
|
|
tmp_return_value = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain__charset_name );
|
|
if ( tmp_return_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 190;
|
|
type_description_1 = "o";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_778b9f9a430d5cc0f15e8d31b8f093f8 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_778b9f9a430d5cc0f15e8d31b8f093f8 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_778b9f9a430d5cc0f15e8d31b8f093f8 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_778b9f9a430d5cc0f15e8d31b8f093f8, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_778b9f9a430d5cc0f15e8d31b8f093f8->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_778b9f9a430d5cc0f15e8d31b8f093f8, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_778b9f9a430d5cc0f15e8d31b8f093f8,
|
|
type_description_1,
|
|
par_self
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_778b9f9a430d5cc0f15e8d31b8f093f8 == cache_frame_778b9f9a430d5cc0f15e8d31b8f093f8 )
|
|
{
|
|
Py_DECREF( frame_778b9f9a430d5cc0f15e8d31b8f093f8 );
|
|
}
|
|
cache_frame_778b9f9a430d5cc0f15e8d31b8f093f8 = NULL;
|
|
|
|
assertFrameObject( frame_778b9f9a430d5cc0f15e8d31b8f093f8 );
|
|
|
|
// 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( chardet$jpcntx$$$function_8_charset_name );
|
|
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( chardet$jpcntx$$$function_8_charset_name );
|
|
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_chardet$jpcntx$$$function_9_get_order( 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_byte_str = python_pars[ 1 ];
|
|
PyObject *var_first_char = NULL;
|
|
PyObject *var_char_len = NULL;
|
|
PyObject *var_second_char = NULL;
|
|
PyObject *tmp_comparison_chain_1__comparison_result = NULL;
|
|
PyObject *tmp_comparison_chain_1__operand_2 = NULL;
|
|
PyObject *tmp_comparison_chain_2__comparison_result = NULL;
|
|
PyObject *tmp_comparison_chain_2__operand_2 = NULL;
|
|
PyObject *tmp_comparison_chain_3__comparison_result = NULL;
|
|
PyObject *tmp_comparison_chain_3__operand_2 = NULL;
|
|
PyObject *tmp_comparison_chain_4__comparison_result = NULL;
|
|
PyObject *tmp_comparison_chain_4__operand_2 = NULL;
|
|
struct Nuitka_FrameObject *frame_f5fdf241d2a263a39294e13f5f82cb60;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
int tmp_res;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
PyObject *exception_keeper_type_2;
|
|
PyObject *exception_keeper_value_2;
|
|
PyTracebackObject *exception_keeper_tb_2;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
|
|
PyObject *exception_keeper_type_3;
|
|
PyObject *exception_keeper_value_3;
|
|
PyTracebackObject *exception_keeper_tb_3;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
|
|
bool tmp_result;
|
|
PyObject *exception_keeper_type_4;
|
|
PyObject *exception_keeper_value_4;
|
|
PyTracebackObject *exception_keeper_tb_4;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
|
|
static struct Nuitka_FrameObject *cache_frame_f5fdf241d2a263a39294e13f5f82cb60 = NULL;
|
|
PyObject *exception_keeper_type_5;
|
|
PyObject *exception_keeper_value_5;
|
|
PyTracebackObject *exception_keeper_tb_5;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_f5fdf241d2a263a39294e13f5f82cb60, codeobj_f5fdf241d2a263a39294e13f5f82cb60, module_chardet$jpcntx, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_f5fdf241d2a263a39294e13f5f82cb60 = cache_frame_f5fdf241d2a263a39294e13f5f82cb60;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_f5fdf241d2a263a39294e13f5f82cb60 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_f5fdf241d2a263a39294e13f5f82cb60 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_operand_name_1;
|
|
CHECK_OBJECT( par_byte_str );
|
|
tmp_operand_name_1 = par_byte_str;
|
|
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 = 193;
|
|
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:;
|
|
{
|
|
tmp_return_value = const_tuple_int_neg_1_int_pos_1_tuple;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_subscript_name_1;
|
|
if ( par_byte_str == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "byte_str" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 196;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_subscribed_name_1 = par_byte_str;
|
|
tmp_subscript_name_1 = const_int_0;
|
|
tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 196;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_first_char == NULL );
|
|
var_first_char = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_2;
|
|
int tmp_or_left_truth_1;
|
|
nuitka_bool tmp_or_left_value_1;
|
|
nuitka_bool tmp_or_right_value_1;
|
|
PyObject *tmp_outline_return_value_1;
|
|
int tmp_truth_name_1;
|
|
PyObject *tmp_outline_return_value_2;
|
|
int tmp_truth_name_2;
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
CHECK_OBJECT( var_first_char );
|
|
tmp_assign_source_2 = var_first_char;
|
|
assert( tmp_comparison_chain_1__operand_2 == NULL );
|
|
Py_INCREF( tmp_assign_source_2 );
|
|
tmp_comparison_chain_1__operand_2 = tmp_assign_source_2;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_3;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
tmp_compexpr_left_1 = const_int_pos_129;
|
|
CHECK_OBJECT( tmp_comparison_chain_1__operand_2 );
|
|
tmp_compexpr_right_1 = tmp_comparison_chain_1__operand_2;
|
|
tmp_assign_source_3 = RICH_COMPARE_LE( tmp_compexpr_left_1, tmp_compexpr_right_1 );
|
|
if ( tmp_assign_source_3 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 197;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_comparison_chain_1__comparison_result == NULL );
|
|
tmp_comparison_chain_1__comparison_result = tmp_assign_source_3;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_3;
|
|
PyObject *tmp_operand_name_2;
|
|
CHECK_OBJECT( tmp_comparison_chain_1__comparison_result );
|
|
tmp_operand_name_2 = tmp_comparison_chain_1__comparison_result;
|
|
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 = 197;
|
|
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:;
|
|
{
|
|
CHECK_OBJECT( tmp_comparison_chain_1__comparison_result );
|
|
tmp_outline_return_value_1 = tmp_comparison_chain_1__comparison_result;
|
|
Py_INCREF( tmp_outline_return_value_1 );
|
|
goto try_return_handler_2;
|
|
}
|
|
branch_no_3:;
|
|
}
|
|
{
|
|
PyObject *tmp_compexpr_left_2;
|
|
PyObject *tmp_compexpr_right_2;
|
|
CHECK_OBJECT( tmp_comparison_chain_1__operand_2 );
|
|
tmp_compexpr_left_2 = tmp_comparison_chain_1__operand_2;
|
|
tmp_compexpr_right_2 = const_int_pos_159;
|
|
tmp_outline_return_value_1 = RICH_COMPARE_LE( tmp_compexpr_left_2, tmp_compexpr_right_2 );
|
|
if ( tmp_outline_return_value_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 197;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
goto try_return_handler_2;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_9_get_order );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_2:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_1__operand_2 );
|
|
Py_DECREF( tmp_comparison_chain_1__operand_2 );
|
|
tmp_comparison_chain_1__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_1__comparison_result );
|
|
Py_DECREF( tmp_comparison_chain_1__comparison_result );
|
|
tmp_comparison_chain_1__comparison_result = NULL;
|
|
|
|
}
|
|
{
|
|
goto outline_result_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;
|
|
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_1__operand_2 );
|
|
Py_DECREF( tmp_comparison_chain_1__operand_2 );
|
|
tmp_comparison_chain_1__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_1__comparison_result );
|
|
tmp_comparison_chain_1__comparison_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 frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_9_get_order );
|
|
return NULL;
|
|
outline_result_1:;
|
|
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_outline_return_value_1 );
|
|
if ( tmp_truth_name_1 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_outline_return_value_1 );
|
|
|
|
exception_lineno = 197;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_or_left_value_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
Py_DECREF( tmp_outline_return_value_1 );
|
|
tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
|
|
if ( tmp_or_left_truth_1 == 1 )
|
|
{
|
|
goto or_left_1;
|
|
}
|
|
else
|
|
{
|
|
goto or_right_1;
|
|
}
|
|
or_right_1:;
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
if ( var_first_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 197;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_3;
|
|
}
|
|
|
|
tmp_assign_source_4 = var_first_char;
|
|
assert( tmp_comparison_chain_2__operand_2 == NULL );
|
|
Py_INCREF( tmp_assign_source_4 );
|
|
tmp_comparison_chain_2__operand_2 = tmp_assign_source_4;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
PyObject *tmp_compexpr_left_3;
|
|
PyObject *tmp_compexpr_right_3;
|
|
tmp_compexpr_left_3 = const_int_pos_224;
|
|
CHECK_OBJECT( tmp_comparison_chain_2__operand_2 );
|
|
tmp_compexpr_right_3 = tmp_comparison_chain_2__operand_2;
|
|
tmp_assign_source_5 = RICH_COMPARE_LE( tmp_compexpr_left_3, tmp_compexpr_right_3 );
|
|
if ( tmp_assign_source_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 197;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_3;
|
|
}
|
|
assert( tmp_comparison_chain_2__comparison_result == NULL );
|
|
tmp_comparison_chain_2__comparison_result = tmp_assign_source_5;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_4;
|
|
PyObject *tmp_operand_name_3;
|
|
CHECK_OBJECT( tmp_comparison_chain_2__comparison_result );
|
|
tmp_operand_name_3 = tmp_comparison_chain_2__comparison_result;
|
|
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 = 197;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_3;
|
|
}
|
|
tmp_condition_result_4 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_4;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_4;
|
|
}
|
|
branch_yes_4:;
|
|
{
|
|
CHECK_OBJECT( tmp_comparison_chain_2__comparison_result );
|
|
tmp_outline_return_value_2 = tmp_comparison_chain_2__comparison_result;
|
|
Py_INCREF( tmp_outline_return_value_2 );
|
|
goto try_return_handler_3;
|
|
}
|
|
branch_no_4:;
|
|
}
|
|
{
|
|
PyObject *tmp_compexpr_left_4;
|
|
PyObject *tmp_compexpr_right_4;
|
|
CHECK_OBJECT( tmp_comparison_chain_2__operand_2 );
|
|
tmp_compexpr_left_4 = tmp_comparison_chain_2__operand_2;
|
|
tmp_compexpr_right_4 = const_int_pos_252;
|
|
tmp_outline_return_value_2 = RICH_COMPARE_LE( tmp_compexpr_left_4, tmp_compexpr_right_4 );
|
|
if ( tmp_outline_return_value_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 197;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_3;
|
|
}
|
|
goto try_return_handler_3;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_9_get_order );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_3:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_2__operand_2 );
|
|
Py_DECREF( tmp_comparison_chain_2__operand_2 );
|
|
tmp_comparison_chain_2__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_2__comparison_result );
|
|
Py_DECREF( tmp_comparison_chain_2__comparison_result );
|
|
tmp_comparison_chain_2__comparison_result = NULL;
|
|
|
|
}
|
|
{
|
|
goto outline_result_2;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_3:;
|
|
exception_keeper_type_2 = exception_type;
|
|
exception_keeper_value_2 = exception_value;
|
|
exception_keeper_tb_2 = exception_tb;
|
|
exception_keeper_lineno_2 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_2__operand_2 );
|
|
tmp_comparison_chain_2__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_2__comparison_result );
|
|
tmp_comparison_chain_2__comparison_result = 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 frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_9_get_order );
|
|
return NULL;
|
|
outline_result_2:;
|
|
tmp_truth_name_2 = CHECK_IF_TRUE( tmp_outline_return_value_2 );
|
|
if ( tmp_truth_name_2 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_outline_return_value_2 );
|
|
|
|
exception_lineno = 197;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_or_right_value_1 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
Py_DECREF( tmp_outline_return_value_2 );
|
|
tmp_condition_result_2 = tmp_or_right_value_1;
|
|
goto or_end_1;
|
|
or_left_1:;
|
|
tmp_condition_result_2 = tmp_or_left_value_1;
|
|
or_end_1:;
|
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_2;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_2;
|
|
}
|
|
branch_yes_2:;
|
|
{
|
|
PyObject *tmp_assign_source_6;
|
|
tmp_assign_source_6 = const_int_pos_2;
|
|
assert( var_char_len == NULL );
|
|
Py_INCREF( tmp_assign_source_6 );
|
|
var_char_len = tmp_assign_source_6;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_5;
|
|
int tmp_or_left_truth_2;
|
|
nuitka_bool tmp_or_left_value_2;
|
|
nuitka_bool tmp_or_right_value_2;
|
|
PyObject *tmp_compexpr_left_5;
|
|
PyObject *tmp_compexpr_right_5;
|
|
PyObject *tmp_outline_return_value_3;
|
|
int tmp_truth_name_3;
|
|
if ( var_first_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 199;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_left_5 = var_first_char;
|
|
tmp_compexpr_right_5 = const_int_pos_135;
|
|
tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_5, tmp_compexpr_right_5 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 199;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_or_left_value_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
tmp_or_left_truth_2 = tmp_or_left_value_2 == NUITKA_BOOL_TRUE ? 1 : 0;
|
|
if ( tmp_or_left_truth_2 == 1 )
|
|
{
|
|
goto or_left_2;
|
|
}
|
|
else
|
|
{
|
|
goto or_right_2;
|
|
}
|
|
or_right_2:;
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_7;
|
|
if ( var_first_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 199;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_4;
|
|
}
|
|
|
|
tmp_assign_source_7 = var_first_char;
|
|
assert( tmp_comparison_chain_3__operand_2 == NULL );
|
|
Py_INCREF( tmp_assign_source_7 );
|
|
tmp_comparison_chain_3__operand_2 = tmp_assign_source_7;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_8;
|
|
PyObject *tmp_compexpr_left_6;
|
|
PyObject *tmp_compexpr_right_6;
|
|
tmp_compexpr_left_6 = const_int_pos_250;
|
|
CHECK_OBJECT( tmp_comparison_chain_3__operand_2 );
|
|
tmp_compexpr_right_6 = tmp_comparison_chain_3__operand_2;
|
|
tmp_assign_source_8 = RICH_COMPARE_LE( tmp_compexpr_left_6, tmp_compexpr_right_6 );
|
|
if ( tmp_assign_source_8 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 199;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_4;
|
|
}
|
|
assert( tmp_comparison_chain_3__comparison_result == NULL );
|
|
tmp_comparison_chain_3__comparison_result = tmp_assign_source_8;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_6;
|
|
PyObject *tmp_operand_name_4;
|
|
CHECK_OBJECT( tmp_comparison_chain_3__comparison_result );
|
|
tmp_operand_name_4 = tmp_comparison_chain_3__comparison_result;
|
|
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 = 199;
|
|
type_description_1 = "ooooo";
|
|
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_6;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_6;
|
|
}
|
|
branch_yes_6:;
|
|
{
|
|
CHECK_OBJECT( tmp_comparison_chain_3__comparison_result );
|
|
tmp_outline_return_value_3 = tmp_comparison_chain_3__comparison_result;
|
|
Py_INCREF( tmp_outline_return_value_3 );
|
|
goto try_return_handler_4;
|
|
}
|
|
branch_no_6:;
|
|
}
|
|
{
|
|
PyObject *tmp_compexpr_left_7;
|
|
PyObject *tmp_compexpr_right_7;
|
|
CHECK_OBJECT( tmp_comparison_chain_3__operand_2 );
|
|
tmp_compexpr_left_7 = tmp_comparison_chain_3__operand_2;
|
|
tmp_compexpr_right_7 = const_int_pos_252;
|
|
tmp_outline_return_value_3 = RICH_COMPARE_LE( tmp_compexpr_left_7, tmp_compexpr_right_7 );
|
|
if ( tmp_outline_return_value_3 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 199;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_4;
|
|
}
|
|
goto try_return_handler_4;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_9_get_order );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_4:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_3__operand_2 );
|
|
Py_DECREF( tmp_comparison_chain_3__operand_2 );
|
|
tmp_comparison_chain_3__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_3__comparison_result );
|
|
Py_DECREF( tmp_comparison_chain_3__comparison_result );
|
|
tmp_comparison_chain_3__comparison_result = NULL;
|
|
|
|
}
|
|
{
|
|
goto outline_result_3;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_4:;
|
|
exception_keeper_type_3 = exception_type;
|
|
exception_keeper_value_3 = exception_value;
|
|
exception_keeper_tb_3 = exception_tb;
|
|
exception_keeper_lineno_3 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_3__operand_2 );
|
|
tmp_comparison_chain_3__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_3__comparison_result );
|
|
tmp_comparison_chain_3__comparison_result = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_3;
|
|
exception_value = exception_keeper_value_3;
|
|
exception_tb = exception_keeper_tb_3;
|
|
exception_lineno = exception_keeper_lineno_3;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_9_get_order );
|
|
return NULL;
|
|
outline_result_3:;
|
|
tmp_truth_name_3 = CHECK_IF_TRUE( tmp_outline_return_value_3 );
|
|
if ( tmp_truth_name_3 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_outline_return_value_3 );
|
|
|
|
exception_lineno = 199;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_or_right_value_2 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
Py_DECREF( tmp_outline_return_value_3 );
|
|
tmp_condition_result_5 = tmp_or_right_value_2;
|
|
goto or_end_2;
|
|
or_left_2:;
|
|
tmp_condition_result_5 = tmp_or_left_value_2;
|
|
or_end_2:;
|
|
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_5;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_5;
|
|
}
|
|
branch_yes_5:;
|
|
{
|
|
PyObject *tmp_assattr_name_1;
|
|
PyObject *tmp_assattr_target_1;
|
|
tmp_assattr_name_1 = const_str_plain_CP932;
|
|
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 = 200;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_assattr_target_1 = par_self;
|
|
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__charset_name, tmp_assattr_name_1 );
|
|
if ( tmp_result == false )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 200;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
}
|
|
branch_no_5:;
|
|
}
|
|
goto branch_end_2;
|
|
branch_no_2:;
|
|
{
|
|
PyObject *tmp_assign_source_9;
|
|
tmp_assign_source_9 = const_int_pos_1;
|
|
assert( var_char_len == NULL );
|
|
Py_INCREF( tmp_assign_source_9 );
|
|
var_char_len = tmp_assign_source_9;
|
|
|
|
}
|
|
branch_end_2:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_7;
|
|
PyObject *tmp_compexpr_left_8;
|
|
PyObject *tmp_compexpr_right_8;
|
|
PyObject *tmp_len_arg_1;
|
|
if ( par_byte_str == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "byte_str" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 205;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_len_arg_1 = par_byte_str;
|
|
tmp_compexpr_left_8 = BUILTIN_LEN( tmp_len_arg_1 );
|
|
if ( tmp_compexpr_left_8 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 205;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_compexpr_right_8 = const_int_pos_1;
|
|
tmp_res = RICH_COMPARE_BOOL_GT( tmp_compexpr_left_8, tmp_compexpr_right_8 );
|
|
Py_DECREF( tmp_compexpr_left_8 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 205;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_7 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_7;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_7;
|
|
}
|
|
branch_yes_7:;
|
|
{
|
|
PyObject *tmp_assign_source_10;
|
|
PyObject *tmp_subscribed_name_2;
|
|
PyObject *tmp_subscript_name_2;
|
|
if ( par_byte_str == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "byte_str" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 206;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_subscribed_name_2 = par_byte_str;
|
|
tmp_subscript_name_2 = const_int_pos_1;
|
|
tmp_assign_source_10 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_2, tmp_subscript_name_2, 1 );
|
|
if ( tmp_assign_source_10 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 206;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_second_char == NULL );
|
|
var_second_char = tmp_assign_source_10;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_8;
|
|
int tmp_and_left_truth_1;
|
|
nuitka_bool tmp_and_left_value_1;
|
|
nuitka_bool tmp_and_right_value_1;
|
|
PyObject *tmp_compexpr_left_9;
|
|
PyObject *tmp_compexpr_right_9;
|
|
PyObject *tmp_outline_return_value_4;
|
|
int tmp_truth_name_4;
|
|
if ( var_first_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 207;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_left_9 = var_first_char;
|
|
tmp_compexpr_right_9 = const_int_pos_202;
|
|
tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_9, tmp_compexpr_right_9 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 207;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_and_left_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
|
|
if ( tmp_and_left_truth_1 == 1 )
|
|
{
|
|
goto and_right_1;
|
|
}
|
|
else
|
|
{
|
|
goto and_left_1;
|
|
}
|
|
and_right_1:;
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_11;
|
|
if ( var_second_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "second_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 207;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_5;
|
|
}
|
|
|
|
tmp_assign_source_11 = var_second_char;
|
|
assert( tmp_comparison_chain_4__operand_2 == NULL );
|
|
Py_INCREF( tmp_assign_source_11 );
|
|
tmp_comparison_chain_4__operand_2 = tmp_assign_source_11;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_12;
|
|
PyObject *tmp_compexpr_left_10;
|
|
PyObject *tmp_compexpr_right_10;
|
|
tmp_compexpr_left_10 = const_int_pos_159;
|
|
CHECK_OBJECT( tmp_comparison_chain_4__operand_2 );
|
|
tmp_compexpr_right_10 = tmp_comparison_chain_4__operand_2;
|
|
tmp_assign_source_12 = RICH_COMPARE_LE( tmp_compexpr_left_10, tmp_compexpr_right_10 );
|
|
if ( tmp_assign_source_12 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 207;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_5;
|
|
}
|
|
assert( tmp_comparison_chain_4__comparison_result == NULL );
|
|
tmp_comparison_chain_4__comparison_result = tmp_assign_source_12;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_9;
|
|
PyObject *tmp_operand_name_5;
|
|
CHECK_OBJECT( tmp_comparison_chain_4__comparison_result );
|
|
tmp_operand_name_5 = tmp_comparison_chain_4__comparison_result;
|
|
tmp_res = CHECK_IF_TRUE( tmp_operand_name_5 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 207;
|
|
type_description_1 = "ooooo";
|
|
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_9;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_9;
|
|
}
|
|
branch_yes_9:;
|
|
{
|
|
CHECK_OBJECT( tmp_comparison_chain_4__comparison_result );
|
|
tmp_outline_return_value_4 = tmp_comparison_chain_4__comparison_result;
|
|
Py_INCREF( tmp_outline_return_value_4 );
|
|
goto try_return_handler_5;
|
|
}
|
|
branch_no_9:;
|
|
}
|
|
{
|
|
PyObject *tmp_compexpr_left_11;
|
|
PyObject *tmp_compexpr_right_11;
|
|
CHECK_OBJECT( tmp_comparison_chain_4__operand_2 );
|
|
tmp_compexpr_left_11 = tmp_comparison_chain_4__operand_2;
|
|
tmp_compexpr_right_11 = const_int_pos_241;
|
|
tmp_outline_return_value_4 = RICH_COMPARE_LE( tmp_compexpr_left_11, tmp_compexpr_right_11 );
|
|
if ( tmp_outline_return_value_4 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 207;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_5;
|
|
}
|
|
goto try_return_handler_5;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_9_get_order );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_5:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_4__operand_2 );
|
|
Py_DECREF( tmp_comparison_chain_4__operand_2 );
|
|
tmp_comparison_chain_4__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_4__comparison_result );
|
|
Py_DECREF( tmp_comparison_chain_4__comparison_result );
|
|
tmp_comparison_chain_4__comparison_result = NULL;
|
|
|
|
}
|
|
{
|
|
goto outline_result_4;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_5:;
|
|
exception_keeper_type_4 = exception_type;
|
|
exception_keeper_value_4 = exception_value;
|
|
exception_keeper_tb_4 = exception_tb;
|
|
exception_keeper_lineno_4 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_4__operand_2 );
|
|
tmp_comparison_chain_4__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_4__comparison_result );
|
|
tmp_comparison_chain_4__comparison_result = 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:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_9_get_order );
|
|
return NULL;
|
|
outline_result_4:;
|
|
tmp_truth_name_4 = CHECK_IF_TRUE( tmp_outline_return_value_4 );
|
|
if ( tmp_truth_name_4 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_outline_return_value_4 );
|
|
|
|
exception_lineno = 207;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_and_right_value_1 = tmp_truth_name_4 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
Py_DECREF( tmp_outline_return_value_4 );
|
|
tmp_condition_result_8 = tmp_and_right_value_1;
|
|
goto and_end_1;
|
|
and_left_1:;
|
|
tmp_condition_result_8 = tmp_and_left_value_1;
|
|
and_end_1:;
|
|
if ( tmp_condition_result_8 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_8;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_8;
|
|
}
|
|
branch_yes_8:;
|
|
{
|
|
PyObject *tmp_tuple_element_1;
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_right_name_1;
|
|
if ( var_second_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "second_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 208;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_left_name_1 = var_second_char;
|
|
tmp_right_name_1 = const_int_pos_159;
|
|
tmp_tuple_element_1 = BINARY_OPERATION_SUB( tmp_left_name_1, tmp_right_name_1 );
|
|
if ( tmp_tuple_element_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 208;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_return_value = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_return_value, 0, tmp_tuple_element_1 );
|
|
if ( var_char_len == NULL )
|
|
{
|
|
Py_DECREF( tmp_return_value );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "char_len" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 208;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_tuple_element_1 = var_char_len;
|
|
Py_INCREF( tmp_tuple_element_1 );
|
|
PyTuple_SET_ITEM( tmp_return_value, 1, tmp_tuple_element_1 );
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_8:;
|
|
}
|
|
branch_no_7:;
|
|
}
|
|
{
|
|
PyObject *tmp_tuple_element_2;
|
|
tmp_tuple_element_2 = const_int_neg_1;
|
|
tmp_return_value = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_2 );
|
|
PyTuple_SET_ITEM( tmp_return_value, 0, tmp_tuple_element_2 );
|
|
if ( var_char_len == NULL )
|
|
{
|
|
Py_DECREF( tmp_return_value );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "char_len" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 210;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_tuple_element_2 = var_char_len;
|
|
Py_INCREF( tmp_tuple_element_2 );
|
|
PyTuple_SET_ITEM( tmp_return_value, 1, tmp_tuple_element_2 );
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f5fdf241d2a263a39294e13f5f82cb60 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f5fdf241d2a263a39294e13f5f82cb60 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_f5fdf241d2a263a39294e13f5f82cb60 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_f5fdf241d2a263a39294e13f5f82cb60, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_f5fdf241d2a263a39294e13f5f82cb60->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_f5fdf241d2a263a39294e13f5f82cb60, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_f5fdf241d2a263a39294e13f5f82cb60,
|
|
type_description_1,
|
|
par_self,
|
|
par_byte_str,
|
|
var_first_char,
|
|
var_char_len,
|
|
var_second_char
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_f5fdf241d2a263a39294e13f5f82cb60 == cache_frame_f5fdf241d2a263a39294e13f5f82cb60 )
|
|
{
|
|
Py_DECREF( frame_f5fdf241d2a263a39294e13f5f82cb60 );
|
|
}
|
|
cache_frame_f5fdf241d2a263a39294e13f5f82cb60 = NULL;
|
|
|
|
assertFrameObject( frame_f5fdf241d2a263a39294e13f5f82cb60 );
|
|
|
|
// 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( chardet$jpcntx$$$function_9_get_order );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_byte_str );
|
|
par_byte_str = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_first_char );
|
|
var_first_char = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_char_len );
|
|
var_char_len = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_second_char );
|
|
var_second_char = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_1:;
|
|
exception_keeper_type_5 = exception_type;
|
|
exception_keeper_value_5 = exception_value;
|
|
exception_keeper_tb_5 = exception_tb;
|
|
exception_keeper_lineno_5 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_byte_str );
|
|
par_byte_str = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_first_char );
|
|
var_first_char = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_char_len );
|
|
var_char_len = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_second_char );
|
|
var_second_char = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_5;
|
|
exception_value = exception_keeper_value_5;
|
|
exception_tb = exception_keeper_tb_5;
|
|
exception_lineno = exception_keeper_lineno_5;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_9_get_order );
|
|
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_chardet$jpcntx$$$function_10_get_order( 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_byte_str = python_pars[ 1 ];
|
|
PyObject *var_first_char = NULL;
|
|
PyObject *var_char_len = NULL;
|
|
PyObject *var_second_char = NULL;
|
|
PyObject *tmp_comparison_chain_1__comparison_result = NULL;
|
|
PyObject *tmp_comparison_chain_1__operand_2 = NULL;
|
|
PyObject *tmp_comparison_chain_2__comparison_result = NULL;
|
|
PyObject *tmp_comparison_chain_2__operand_2 = NULL;
|
|
struct Nuitka_FrameObject *frame_a76e695bf7205c278db03b927cb760e6;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
|
|
int tmp_res;
|
|
PyObject *exception_type = NULL;
|
|
PyObject *exception_value = NULL;
|
|
PyTracebackObject *exception_tb = NULL;
|
|
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
|
|
PyObject *tmp_return_value = NULL;
|
|
PyObject *exception_keeper_type_1;
|
|
PyObject *exception_keeper_value_1;
|
|
PyTracebackObject *exception_keeper_tb_1;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
|
|
PyObject *exception_keeper_type_2;
|
|
PyObject *exception_keeper_value_2;
|
|
PyTracebackObject *exception_keeper_tb_2;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
|
|
static struct Nuitka_FrameObject *cache_frame_a76e695bf7205c278db03b927cb760e6 = NULL;
|
|
PyObject *exception_keeper_type_3;
|
|
PyObject *exception_keeper_value_3;
|
|
PyTracebackObject *exception_keeper_tb_3;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
|
|
|
|
// Actual function code.
|
|
{
|
|
// Tried code:
|
|
MAKE_OR_REUSE_FRAME( cache_frame_a76e695bf7205c278db03b927cb760e6, codeobj_a76e695bf7205c278db03b927cb760e6, module_chardet$jpcntx, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
|
|
frame_a76e695bf7205c278db03b927cb760e6 = cache_frame_a76e695bf7205c278db03b927cb760e6;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_a76e695bf7205c278db03b927cb760e6 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_a76e695bf7205c278db03b927cb760e6 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
nuitka_bool tmp_condition_result_1;
|
|
PyObject *tmp_operand_name_1;
|
|
CHECK_OBJECT( par_byte_str );
|
|
tmp_operand_name_1 = par_byte_str;
|
|
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 = 214;
|
|
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:;
|
|
{
|
|
tmp_return_value = const_tuple_int_neg_1_int_pos_1_tuple;
|
|
Py_INCREF( tmp_return_value );
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_1:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
PyObject *tmp_subscribed_name_1;
|
|
PyObject *tmp_subscript_name_1;
|
|
if ( par_byte_str == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "byte_str" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 217;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_subscribed_name_1 = par_byte_str;
|
|
tmp_subscript_name_1 = const_int_0;
|
|
tmp_assign_source_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 );
|
|
if ( tmp_assign_source_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 217;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_first_char == NULL );
|
|
var_first_char = tmp_assign_source_1;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_2;
|
|
int tmp_or_left_truth_1;
|
|
nuitka_bool tmp_or_left_value_1;
|
|
nuitka_bool tmp_or_right_value_1;
|
|
PyObject *tmp_compexpr_left_1;
|
|
PyObject *tmp_compexpr_right_1;
|
|
PyObject *tmp_outline_return_value_1;
|
|
int tmp_truth_name_1;
|
|
CHECK_OBJECT( var_first_char );
|
|
tmp_compexpr_left_1 = var_first_char;
|
|
tmp_compexpr_right_1 = const_int_pos_142;
|
|
tmp_res = RICH_COMPARE_BOOL_EQ( 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 = 218;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_or_left_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
tmp_or_left_truth_1 = tmp_or_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
|
|
if ( tmp_or_left_truth_1 == 1 )
|
|
{
|
|
goto or_left_1;
|
|
}
|
|
else
|
|
{
|
|
goto or_right_1;
|
|
}
|
|
or_right_1:;
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
if ( var_first_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 218;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
|
|
tmp_assign_source_2 = var_first_char;
|
|
assert( tmp_comparison_chain_1__operand_2 == NULL );
|
|
Py_INCREF( tmp_assign_source_2 );
|
|
tmp_comparison_chain_1__operand_2 = tmp_assign_source_2;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_3;
|
|
PyObject *tmp_compexpr_left_2;
|
|
PyObject *tmp_compexpr_right_2;
|
|
tmp_compexpr_left_2 = const_int_pos_161;
|
|
CHECK_OBJECT( tmp_comparison_chain_1__operand_2 );
|
|
tmp_compexpr_right_2 = tmp_comparison_chain_1__operand_2;
|
|
tmp_assign_source_3 = RICH_COMPARE_LE( tmp_compexpr_left_2, tmp_compexpr_right_2 );
|
|
if ( tmp_assign_source_3 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 218;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
assert( tmp_comparison_chain_1__comparison_result == NULL );
|
|
tmp_comparison_chain_1__comparison_result = tmp_assign_source_3;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_3;
|
|
PyObject *tmp_operand_name_2;
|
|
CHECK_OBJECT( tmp_comparison_chain_1__comparison_result );
|
|
tmp_operand_name_2 = tmp_comparison_chain_1__comparison_result;
|
|
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 = 218;
|
|
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:;
|
|
{
|
|
CHECK_OBJECT( tmp_comparison_chain_1__comparison_result );
|
|
tmp_outline_return_value_1 = tmp_comparison_chain_1__comparison_result;
|
|
Py_INCREF( tmp_outline_return_value_1 );
|
|
goto try_return_handler_2;
|
|
}
|
|
branch_no_3:;
|
|
}
|
|
{
|
|
PyObject *tmp_compexpr_left_3;
|
|
PyObject *tmp_compexpr_right_3;
|
|
CHECK_OBJECT( tmp_comparison_chain_1__operand_2 );
|
|
tmp_compexpr_left_3 = tmp_comparison_chain_1__operand_2;
|
|
tmp_compexpr_right_3 = const_int_pos_254;
|
|
tmp_outline_return_value_1 = RICH_COMPARE_LE( tmp_compexpr_left_3, tmp_compexpr_right_3 );
|
|
if ( tmp_outline_return_value_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 218;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_2;
|
|
}
|
|
goto try_return_handler_2;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_10_get_order );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_2:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_1__operand_2 );
|
|
Py_DECREF( tmp_comparison_chain_1__operand_2 );
|
|
tmp_comparison_chain_1__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_1__comparison_result );
|
|
Py_DECREF( tmp_comparison_chain_1__comparison_result );
|
|
tmp_comparison_chain_1__comparison_result = NULL;
|
|
|
|
}
|
|
{
|
|
goto outline_result_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_comparison_chain_1__operand_2 );
|
|
tmp_comparison_chain_1__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_1__comparison_result );
|
|
tmp_comparison_chain_1__comparison_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 frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_10_get_order );
|
|
return NULL;
|
|
outline_result_1:;
|
|
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_outline_return_value_1 );
|
|
if ( tmp_truth_name_1 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_outline_return_value_1 );
|
|
|
|
exception_lineno = 218;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_or_right_value_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
Py_DECREF( tmp_outline_return_value_1 );
|
|
tmp_condition_result_2 = tmp_or_right_value_1;
|
|
goto or_end_1;
|
|
or_left_1:;
|
|
tmp_condition_result_2 = tmp_or_left_value_1;
|
|
or_end_1:;
|
|
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_2;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_2;
|
|
}
|
|
branch_yes_2:;
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
tmp_assign_source_4 = const_int_pos_2;
|
|
assert( var_char_len == NULL );
|
|
Py_INCREF( tmp_assign_source_4 );
|
|
var_char_len = tmp_assign_source_4;
|
|
|
|
}
|
|
goto branch_end_2;
|
|
branch_no_2:;
|
|
{
|
|
nuitka_bool tmp_condition_result_4;
|
|
PyObject *tmp_compexpr_left_4;
|
|
PyObject *tmp_compexpr_right_4;
|
|
if ( var_first_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 220;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_left_4 = var_first_char;
|
|
tmp_compexpr_right_4 = const_int_pos_143;
|
|
tmp_res = RICH_COMPARE_BOOL_EQ( 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 = 220;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_4;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_4;
|
|
}
|
|
branch_yes_4:;
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
tmp_assign_source_5 = const_int_pos_3;
|
|
assert( var_char_len == NULL );
|
|
Py_INCREF( tmp_assign_source_5 );
|
|
var_char_len = tmp_assign_source_5;
|
|
|
|
}
|
|
goto branch_end_4;
|
|
branch_no_4:;
|
|
{
|
|
PyObject *tmp_assign_source_6;
|
|
tmp_assign_source_6 = const_int_pos_1;
|
|
assert( var_char_len == NULL );
|
|
Py_INCREF( tmp_assign_source_6 );
|
|
var_char_len = tmp_assign_source_6;
|
|
|
|
}
|
|
branch_end_4:;
|
|
}
|
|
branch_end_2:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_5;
|
|
PyObject *tmp_compexpr_left_5;
|
|
PyObject *tmp_compexpr_right_5;
|
|
PyObject *tmp_len_arg_1;
|
|
if ( par_byte_str == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "byte_str" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 226;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_len_arg_1 = par_byte_str;
|
|
tmp_compexpr_left_5 = BUILTIN_LEN( tmp_len_arg_1 );
|
|
if ( tmp_compexpr_left_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 226;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_compexpr_right_5 = const_int_pos_1;
|
|
tmp_res = RICH_COMPARE_BOOL_GT( tmp_compexpr_left_5, tmp_compexpr_right_5 );
|
|
Py_DECREF( tmp_compexpr_left_5 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 226;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_condition_result_5 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_5;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_5;
|
|
}
|
|
branch_yes_5:;
|
|
{
|
|
PyObject *tmp_assign_source_7;
|
|
PyObject *tmp_subscribed_name_2;
|
|
PyObject *tmp_subscript_name_2;
|
|
if ( par_byte_str == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "byte_str" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 227;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_subscribed_name_2 = par_byte_str;
|
|
tmp_subscript_name_2 = const_int_pos_1;
|
|
tmp_assign_source_7 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_2, tmp_subscript_name_2, 1 );
|
|
if ( tmp_assign_source_7 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 227;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
assert( var_second_char == NULL );
|
|
var_second_char = tmp_assign_source_7;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_6;
|
|
int tmp_and_left_truth_1;
|
|
nuitka_bool tmp_and_left_value_1;
|
|
nuitka_bool tmp_and_right_value_1;
|
|
PyObject *tmp_compexpr_left_6;
|
|
PyObject *tmp_compexpr_right_6;
|
|
PyObject *tmp_outline_return_value_2;
|
|
int tmp_truth_name_2;
|
|
if ( var_first_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "first_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 228;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_compexpr_left_6 = var_first_char;
|
|
tmp_compexpr_right_6 = const_int_pos_164;
|
|
tmp_res = RICH_COMPARE_BOOL_EQ( tmp_compexpr_left_6, tmp_compexpr_right_6 );
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 228;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_and_left_value_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
|
|
if ( tmp_and_left_truth_1 == 1 )
|
|
{
|
|
goto and_right_1;
|
|
}
|
|
else
|
|
{
|
|
goto and_left_1;
|
|
}
|
|
and_right_1:;
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_8;
|
|
if ( var_second_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "second_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 228;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_3;
|
|
}
|
|
|
|
tmp_assign_source_8 = var_second_char;
|
|
assert( tmp_comparison_chain_2__operand_2 == NULL );
|
|
Py_INCREF( tmp_assign_source_8 );
|
|
tmp_comparison_chain_2__operand_2 = tmp_assign_source_8;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_9;
|
|
PyObject *tmp_compexpr_left_7;
|
|
PyObject *tmp_compexpr_right_7;
|
|
tmp_compexpr_left_7 = const_int_pos_161;
|
|
CHECK_OBJECT( tmp_comparison_chain_2__operand_2 );
|
|
tmp_compexpr_right_7 = tmp_comparison_chain_2__operand_2;
|
|
tmp_assign_source_9 = RICH_COMPARE_LE( tmp_compexpr_left_7, tmp_compexpr_right_7 );
|
|
if ( tmp_assign_source_9 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 228;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_3;
|
|
}
|
|
assert( tmp_comparison_chain_2__comparison_result == NULL );
|
|
tmp_comparison_chain_2__comparison_result = tmp_assign_source_9;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_7;
|
|
PyObject *tmp_operand_name_3;
|
|
CHECK_OBJECT( tmp_comparison_chain_2__comparison_result );
|
|
tmp_operand_name_3 = tmp_comparison_chain_2__comparison_result;
|
|
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 = 228;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_3;
|
|
}
|
|
tmp_condition_result_7 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_7;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_7;
|
|
}
|
|
branch_yes_7:;
|
|
{
|
|
CHECK_OBJECT( tmp_comparison_chain_2__comparison_result );
|
|
tmp_outline_return_value_2 = tmp_comparison_chain_2__comparison_result;
|
|
Py_INCREF( tmp_outline_return_value_2 );
|
|
goto try_return_handler_3;
|
|
}
|
|
branch_no_7:;
|
|
}
|
|
{
|
|
PyObject *tmp_compexpr_left_8;
|
|
PyObject *tmp_compexpr_right_8;
|
|
CHECK_OBJECT( tmp_comparison_chain_2__operand_2 );
|
|
tmp_compexpr_left_8 = tmp_comparison_chain_2__operand_2;
|
|
tmp_compexpr_right_8 = const_int_pos_243;
|
|
tmp_outline_return_value_2 = RICH_COMPARE_LE( tmp_compexpr_left_8, tmp_compexpr_right_8 );
|
|
if ( tmp_outline_return_value_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 228;
|
|
type_description_1 = "ooooo";
|
|
goto try_except_handler_3;
|
|
}
|
|
goto try_return_handler_3;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_10_get_order );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_3:;
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_2__operand_2 );
|
|
Py_DECREF( tmp_comparison_chain_2__operand_2 );
|
|
tmp_comparison_chain_2__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( (PyObject *)tmp_comparison_chain_2__comparison_result );
|
|
Py_DECREF( tmp_comparison_chain_2__comparison_result );
|
|
tmp_comparison_chain_2__comparison_result = NULL;
|
|
|
|
}
|
|
{
|
|
goto outline_result_2;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_3:;
|
|
exception_keeper_type_2 = exception_type;
|
|
exception_keeper_value_2 = exception_value;
|
|
exception_keeper_tb_2 = exception_tb;
|
|
exception_keeper_lineno_2 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_2__operand_2 );
|
|
tmp_comparison_chain_2__operand_2 = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( tmp_comparison_chain_2__comparison_result );
|
|
tmp_comparison_chain_2__comparison_result = 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 frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_10_get_order );
|
|
return NULL;
|
|
outline_result_2:;
|
|
tmp_truth_name_2 = CHECK_IF_TRUE( tmp_outline_return_value_2 );
|
|
if ( tmp_truth_name_2 == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_outline_return_value_2 );
|
|
|
|
exception_lineno = 228;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_and_right_value_1 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
Py_DECREF( tmp_outline_return_value_2 );
|
|
tmp_condition_result_6 = tmp_and_right_value_1;
|
|
goto and_end_1;
|
|
and_left_1:;
|
|
tmp_condition_result_6 = tmp_and_left_value_1;
|
|
and_end_1:;
|
|
if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_6;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_6;
|
|
}
|
|
branch_yes_6:;
|
|
{
|
|
PyObject *tmp_tuple_element_1;
|
|
PyObject *tmp_left_name_1;
|
|
PyObject *tmp_right_name_1;
|
|
if ( var_second_char == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "second_char" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 229;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_left_name_1 = var_second_char;
|
|
tmp_right_name_1 = const_int_pos_161;
|
|
tmp_tuple_element_1 = BINARY_OPERATION_SUB( tmp_left_name_1, tmp_right_name_1 );
|
|
if ( tmp_tuple_element_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 229;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
tmp_return_value = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_return_value, 0, tmp_tuple_element_1 );
|
|
if ( var_char_len == NULL )
|
|
{
|
|
Py_DECREF( tmp_return_value );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "char_len" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 229;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_tuple_element_1 = var_char_len;
|
|
Py_INCREF( tmp_tuple_element_1 );
|
|
PyTuple_SET_ITEM( tmp_return_value, 1, tmp_tuple_element_1 );
|
|
goto frame_return_exit_1;
|
|
}
|
|
branch_no_6:;
|
|
}
|
|
branch_no_5:;
|
|
}
|
|
{
|
|
PyObject *tmp_tuple_element_2;
|
|
tmp_tuple_element_2 = const_int_neg_1;
|
|
tmp_return_value = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_2 );
|
|
PyTuple_SET_ITEM( tmp_return_value, 0, tmp_tuple_element_2 );
|
|
if ( var_char_len == NULL )
|
|
{
|
|
Py_DECREF( tmp_return_value );
|
|
exception_type = PyExc_UnboundLocalError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "char_len" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 231;
|
|
type_description_1 = "ooooo";
|
|
goto frame_exception_exit_1;
|
|
}
|
|
|
|
tmp_tuple_element_2 = var_char_len;
|
|
Py_INCREF( tmp_tuple_element_2 );
|
|
PyTuple_SET_ITEM( tmp_return_value, 1, tmp_tuple_element_2 );
|
|
goto frame_return_exit_1;
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_a76e695bf7205c278db03b927cb760e6 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_1;
|
|
|
|
frame_return_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_a76e695bf7205c278db03b927cb760e6 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto try_return_handler_1;
|
|
|
|
frame_exception_exit_1:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_a76e695bf7205c278db03b927cb760e6 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_a76e695bf7205c278db03b927cb760e6, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_a76e695bf7205c278db03b927cb760e6->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_a76e695bf7205c278db03b927cb760e6, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_a76e695bf7205c278db03b927cb760e6,
|
|
type_description_1,
|
|
par_self,
|
|
par_byte_str,
|
|
var_first_char,
|
|
var_char_len,
|
|
var_second_char
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_a76e695bf7205c278db03b927cb760e6 == cache_frame_a76e695bf7205c278db03b927cb760e6 )
|
|
{
|
|
Py_DECREF( frame_a76e695bf7205c278db03b927cb760e6 );
|
|
}
|
|
cache_frame_a76e695bf7205c278db03b927cb760e6 = NULL;
|
|
|
|
assertFrameObject( frame_a76e695bf7205c278db03b927cb760e6 );
|
|
|
|
// 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( chardet$jpcntx$$$function_10_get_order );
|
|
return NULL;
|
|
// Return handler code:
|
|
try_return_handler_1:;
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_byte_str );
|
|
par_byte_str = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_first_char );
|
|
var_first_char = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_char_len );
|
|
var_char_len = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_second_char );
|
|
var_second_char = NULL;
|
|
|
|
}
|
|
{
|
|
goto function_return_exit;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_1:;
|
|
exception_keeper_type_3 = exception_type;
|
|
exception_keeper_value_3 = exception_value;
|
|
exception_keeper_tb_3 = exception_tb;
|
|
exception_keeper_lineno_3 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( par_self );
|
|
par_self = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( par_byte_str );
|
|
par_byte_str = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_first_char );
|
|
var_first_char = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_char_len );
|
|
var_char_len = NULL;
|
|
|
|
}
|
|
{
|
|
Py_XDECREF( var_second_char );
|
|
var_second_char = NULL;
|
|
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_3;
|
|
exception_value = exception_keeper_value_3;
|
|
exception_tb = exception_keeper_tb_3;
|
|
exception_lineno = exception_keeper_lineno_3;
|
|
|
|
goto function_exception_exit;
|
|
}
|
|
// End of try:
|
|
}
|
|
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx$$$function_10_get_order );
|
|
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_chardet$jpcntx$$$function_10_get_order( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_10_get_order,
|
|
const_str_plain_get_order,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_454cc91cdffdd1487a4dc494efb8bf4c,
|
|
#endif
|
|
codeobj_a76e695bf7205c278db03b927cb760e6,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_1___init__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_1___init__,
|
|
const_str_plain___init__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_9b52630297eedac62308f45f81ea4075,
|
|
#endif
|
|
codeobj_db082d16c12545443a3d1439fccc5b66,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_2_reset( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_2_reset,
|
|
const_str_plain_reset,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_8a5daf8f6da3aef3adcbd2ae8a15fd47,
|
|
#endif
|
|
codeobj_3ef62d606183c38214a0535f61a31069,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_3_feed( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_3_feed,
|
|
const_str_plain_feed,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_789ab30d197e8fe6c207b489ef559254,
|
|
#endif
|
|
codeobj_a93f805310f04579f9dcae1fb586e734,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_4_got_enough_data( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_4_got_enough_data,
|
|
const_str_plain_got_enough_data,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_f46528c54d535fecd0d9e7e65fa40eb0,
|
|
#endif
|
|
codeobj_c0f8fa9d87f0dc51bd58f37a99b943bb,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_5_get_confidence( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_5_get_confidence,
|
|
const_str_plain_get_confidence,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_cfd16a8ec0decae98e96bd7c3a079ca1,
|
|
#endif
|
|
codeobj_52a05a8fecf0de75cec3ce9ebeed728d,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_6_get_order( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_6_get_order,
|
|
const_str_plain_get_order,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_b67dbbba9f1160ac6a3c859d538f2049,
|
|
#endif
|
|
codeobj_3d556bd35ecf906e908ef4d050349865,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_7___init__( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_7___init__,
|
|
const_str_plain___init__,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_48f4c4f67057490d113cf4a4c74b5387,
|
|
#endif
|
|
codeobj_59d61145b06a96b9f3ab0a013c750d6b,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_8_charset_name( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_8_charset_name,
|
|
const_str_plain_charset_name,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_7065400ab02faddeccf35c317f8460d1,
|
|
#endif
|
|
codeobj_778b9f9a430d5cc0f15e8d31b8f093f8,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
static PyObject *MAKE_FUNCTION_chardet$jpcntx$$$function_9_get_order( )
|
|
{
|
|
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
|
|
impl_chardet$jpcntx$$$function_9_get_order,
|
|
const_str_plain_get_order,
|
|
#if PYTHON_VERSION >= 300
|
|
const_str_digest_f169fb3a1f692d4c7beb725a93b6e18a,
|
|
#endif
|
|
codeobj_f5fdf241d2a263a39294e13f5f82cb60,
|
|
NULL,
|
|
#if PYTHON_VERSION >= 300
|
|
NULL,
|
|
NULL,
|
|
#endif
|
|
module_chardet$jpcntx,
|
|
NULL,
|
|
0
|
|
);
|
|
|
|
return (PyObject *)result;
|
|
}
|
|
|
|
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
static struct PyModuleDef mdef_chardet$jpcntx =
|
|
{
|
|
PyModuleDef_HEAD_INIT,
|
|
"chardet.jpcntx", /* 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( chardet$jpcntx )
|
|
{
|
|
#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_chardet$jpcntx );
|
|
}
|
|
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("chardet.jpcntx: 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("chardet.jpcntx: Calling createModuleConstants().");
|
|
#endif
|
|
createModuleConstants();
|
|
|
|
/* The code objects used by this module are created now. */
|
|
#ifdef _NUITKA_TRACE
|
|
puts("chardet.jpcntx: Calling createModuleCodeObjects().");
|
|
#endif
|
|
createModuleCodeObjects();
|
|
|
|
// puts( "in initchardet$jpcntx" );
|
|
|
|
// 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_chardet$jpcntx = Py_InitModule4(
|
|
"chardet.jpcntx", // 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_chardet$jpcntx = PyModule_Create( &mdef_chardet$jpcntx );
|
|
#endif
|
|
|
|
moduledict_chardet$jpcntx = MODULE_DICT( module_chardet$jpcntx );
|
|
|
|
// Update "__package__" value to what it ought to be.
|
|
{
|
|
#if 0
|
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain___name__ );
|
|
|
|
UPDATE_STRING_DICT1(
|
|
moduledict_chardet$jpcntx,
|
|
(Nuitka_StringObject *)const_str_plain___package__,
|
|
module_name
|
|
);
|
|
|
|
#else
|
|
|
|
#if PYTHON_VERSION < 300
|
|
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_chardet$jpcntx, (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_chardet$jpcntx,
|
|
(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_chardet$jpcntx, (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_chardet$jpcntx,
|
|
(Nuitka_StringObject *)const_str_plain___package__,
|
|
PyUnicode_Substring( module_name, 0, dot_index )
|
|
);
|
|
}
|
|
#endif
|
|
#endif
|
|
}
|
|
|
|
CHECK_OBJECT( module_chardet$jpcntx );
|
|
|
|
// 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_c6e429a71fde053d8e68cdb70acfd8ce, module_chardet$jpcntx );
|
|
|
|
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_chardet$jpcntx, (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_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain___builtins__, value );
|
|
}
|
|
|
|
#if PYTHON_VERSION >= 300
|
|
UPDATE_STRING_DICT0( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
|
|
#endif
|
|
|
|
#if PYTHON_VERSION >= 340
|
|
#if 0
|
|
UPDATE_STRING_DICT0( moduledict_chardet$jpcntx, (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_chardet$jpcntx, (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_chardet$jpcntx, (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 *tmp_class_creation_1__bases = NULL;
|
|
PyObject *tmp_class_creation_1__class_decl_dict = NULL;
|
|
PyObject *tmp_class_creation_1__metaclass = NULL;
|
|
PyObject *tmp_class_creation_1__prepared = NULL;
|
|
PyObject *tmp_class_creation_2__bases = NULL;
|
|
PyObject *tmp_class_creation_2__bases_orig = 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__bases_orig = NULL;
|
|
PyObject *tmp_class_creation_3__class_decl_dict = NULL;
|
|
PyObject *tmp_class_creation_3__metaclass = NULL;
|
|
PyObject *tmp_class_creation_3__prepared = NULL;
|
|
struct Nuitka_FrameObject *frame_78178c637b2ce9218f0071f6a2579fbf;
|
|
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 *tmp_dictdel_dict;
|
|
PyObject *tmp_dictdel_key;
|
|
bool tmp_result;
|
|
PyObject *locals_chardet$jpcntx_116 = NULL;
|
|
PyObject *tmp_dictset_value;
|
|
struct Nuitka_FrameObject *frame_556802167139cfa801f3190380f2bd63_2;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_556802167139cfa801f3190380f2bd63_2 = 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;
|
|
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 *locals_chardet$jpcntx_183 = NULL;
|
|
struct Nuitka_FrameObject *frame_afeb2254c728faf07566a57a6f87faa2_3;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_3 = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_afeb2254c728faf07566a57a6f87faa2_3 = NULL;
|
|
PyObject *exception_keeper_type_4;
|
|
PyObject *exception_keeper_value_4;
|
|
PyTracebackObject *exception_keeper_tb_4;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
|
|
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 *locals_chardet$jpcntx_212 = NULL;
|
|
struct Nuitka_FrameObject *frame_b8a09caac410d7d4675278a9bd7375d0_4;
|
|
NUITKA_MAY_BE_UNUSED char const *type_description_4 = NULL;
|
|
static struct Nuitka_FrameObject *cache_frame_b8a09caac410d7d4675278a9bd7375d0_4 = NULL;
|
|
PyObject *exception_keeper_type_7;
|
|
PyObject *exception_keeper_value_7;
|
|
PyTracebackObject *exception_keeper_tb_7;
|
|
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_7;
|
|
PyObject *exception_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;
|
|
|
|
// Module code.
|
|
{
|
|
PyObject *tmp_assign_source_1;
|
|
tmp_assign_source_1 = Py_None;
|
|
UPDATE_STRING_DICT0( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_2;
|
|
tmp_assign_source_2 = const_str_digest_9d45504aa41261df3b7d2bae86e8a8dc;
|
|
UPDATE_STRING_DICT0( moduledict_chardet$jpcntx, (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_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_4;
|
|
tmp_assign_source_4 = const_tuple_5fed71172b5ab5fdaa99957ff12e9014_tuple;
|
|
UPDATE_STRING_DICT0( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain_jp2CharContext, tmp_assign_source_4 );
|
|
}
|
|
// Frame without reuse.
|
|
frame_78178c637b2ce9218f0071f6a2579fbf = MAKE_MODULE_FRAME( codeobj_78178c637b2ce9218f0071f6a2579fbf, module_chardet$jpcntx );
|
|
|
|
// Push the new frame as the currently active one, and we should be exclusively
|
|
// owning it.
|
|
pushFrameStack( frame_78178c637b2ce9218f0071f6a2579fbf );
|
|
assert( Py_REFCNT( frame_78178c637b2ce9218f0071f6a2579fbf ) == 2 );
|
|
|
|
// Framed code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_5;
|
|
PyObject *tmp_dircall_arg1_1;
|
|
tmp_dircall_arg1_1 = const_tuple_type_object_tuple;
|
|
Py_INCREF( tmp_dircall_arg1_1 );
|
|
|
|
{
|
|
PyObject *dir_call_args[] = {tmp_dircall_arg1_1};
|
|
tmp_assign_source_5 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
|
|
}
|
|
if ( tmp_assign_source_5 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
assert( tmp_class_creation_1__bases == NULL );
|
|
tmp_class_creation_1__bases = tmp_assign_source_5;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_6;
|
|
tmp_assign_source_6 = PyDict_New();
|
|
assert( tmp_class_creation_1__class_decl_dict == NULL );
|
|
tmp_class_creation_1__class_decl_dict = tmp_assign_source_6;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_7;
|
|
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 = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
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 = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
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 = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
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 = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
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 = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
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_7 = SELECT_METACLASS( tmp_metaclass_name_1, tmp_bases_name_1 );
|
|
Py_DECREF( tmp_metaclass_name_1 );
|
|
if ( tmp_assign_source_7 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
assert( tmp_class_creation_1__metaclass == NULL );
|
|
tmp_class_creation_1__metaclass = tmp_assign_source_7;
|
|
|
|
}
|
|
{
|
|
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 = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
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 = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
}
|
|
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_8;
|
|
PyObject *tmp_called_name_1;
|
|
PyObject *tmp_source_name_2;
|
|
PyObject *tmp_args_name_1;
|
|
PyObject *tmp_tuple_element_1;
|
|
PyObject *tmp_kw_name_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
|
tmp_source_name_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 = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
tmp_tuple_element_1 = const_str_plain_JapaneseContextAnalysis;
|
|
tmp_args_name_1 = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_1 );
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_1 );
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_tuple_element_1 = tmp_class_creation_1__bases;
|
|
Py_INCREF( tmp_tuple_element_1 );
|
|
PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_1 );
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_kw_name_1 = tmp_class_creation_1__class_decl_dict;
|
|
frame_78178c637b2ce9218f0071f6a2579fbf->m_frame.f_lineno = 116;
|
|
tmp_assign_source_8 = 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_8 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
assert( tmp_class_creation_1__prepared == NULL );
|
|
tmp_class_creation_1__prepared = tmp_assign_source_8;
|
|
|
|
}
|
|
{
|
|
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 = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
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_2;
|
|
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_2 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 );
|
|
if ( tmp_tuple_element_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
tmp_right_name_1 = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_2 );
|
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
|
tmp_type_arg_2 = tmp_class_creation_1__prepared;
|
|
tmp_source_name_4 = BUILTIN_TYPE1( tmp_type_arg_2 );
|
|
assert( !(tmp_source_name_4 == NULL) );
|
|
tmp_tuple_element_2 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain___name__ );
|
|
Py_DECREF( tmp_source_name_4 );
|
|
if ( tmp_tuple_element_2 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_right_name_1 );
|
|
|
|
exception_lineno = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_2 );
|
|
tmp_raise_value_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 );
|
|
Py_DECREF( tmp_right_name_1 );
|
|
if ( tmp_raise_value_1 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 116;
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
exception_type = tmp_raise_type_1;
|
|
Py_INCREF( tmp_raise_type_1 );
|
|
exception_value = tmp_raise_value_1;
|
|
exception_lineno = 116;
|
|
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
|
|
|
|
goto try_except_handler_1;
|
|
}
|
|
branch_no_3:;
|
|
}
|
|
goto branch_end_2;
|
|
branch_no_2:;
|
|
{
|
|
PyObject *tmp_assign_source_9;
|
|
tmp_assign_source_9 = PyDict_New();
|
|
assert( tmp_class_creation_1__prepared == NULL );
|
|
tmp_class_creation_1__prepared = tmp_assign_source_9;
|
|
|
|
}
|
|
branch_end_2:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_10;
|
|
{
|
|
PyObject *tmp_set_locals_1;
|
|
CHECK_OBJECT( tmp_class_creation_1__prepared );
|
|
tmp_set_locals_1 = tmp_class_creation_1__prepared;
|
|
locals_chardet$jpcntx_116 = tmp_set_locals_1;
|
|
Py_INCREF( tmp_set_locals_1 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_dictset_value = const_str_digest_c6e429a71fde053d8e68cdb70acfd8ce;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, 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 = 116;
|
|
|
|
goto try_except_handler_3;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_str_plain_JapaneseContextAnalysis;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, 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 = 116;
|
|
|
|
goto try_except_handler_3;
|
|
}
|
|
}
|
|
MAKE_OR_REUSE_FRAME( cache_frame_556802167139cfa801f3190380f2bd63_2, codeobj_556802167139cfa801f3190380f2bd63, module_chardet$jpcntx, sizeof(void *) );
|
|
frame_556802167139cfa801f3190380f2bd63_2 = cache_frame_556802167139cfa801f3190380f2bd63_2;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_556802167139cfa801f3190380f2bd63_2 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_556802167139cfa801f3190380f2bd63_2 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
tmp_dictset_value = const_int_pos_6;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_NUM_OF_CATEGORY, tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 117;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_int_neg_1;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_DONT_KNOW, tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 118;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_int_pos_100;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_ENOUGH_REL_THRESHOLD, tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 119;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_int_pos_1000;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_MAX_REL_THRESHOLD, tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 120;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_int_pos_4;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_MINIMUM_DATA_THRESHOLD, tmp_dictset_value );
|
|
if ( tmp_res != 0 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 121;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_chardet$jpcntx$$$function_1___init__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, 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_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_chardet$jpcntx$$$function_2_reset( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_reset, 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 = 131;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_chardet$jpcntx$$$function_3_feed( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_feed, 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_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_chardet$jpcntx$$$function_4_got_enough_data( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_got_enough_data, 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 = 170;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_chardet$jpcntx$$$function_5_get_confidence( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_get_confidence, 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 = 173;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_chardet$jpcntx$$$function_6_get_order( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, const_str_plain_get_order, 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 = 180;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_2;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_556802167139cfa801f3190380f2bd63_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_556802167139cfa801f3190380f2bd63_2 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_556802167139cfa801f3190380f2bd63_2, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_556802167139cfa801f3190380f2bd63_2->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_556802167139cfa801f3190380f2bd63_2, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_556802167139cfa801f3190380f2bd63_2,
|
|
type_description_2,
|
|
outline_0_var___class__
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_556802167139cfa801f3190380f2bd63_2 == cache_frame_556802167139cfa801f3190380f2bd63_2 )
|
|
{
|
|
Py_DECREF( frame_556802167139cfa801f3190380f2bd63_2 );
|
|
}
|
|
cache_frame_556802167139cfa801f3190380f2bd63_2 = NULL;
|
|
|
|
assertFrameObject( frame_556802167139cfa801f3190380f2bd63_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_3;
|
|
skip_nested_handling_1:;
|
|
{
|
|
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;
|
|
tmp_compexpr_right_1 = const_tuple_type_object_tuple;
|
|
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 = 116;
|
|
|
|
goto try_except_handler_3;
|
|
}
|
|
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:;
|
|
{
|
|
tmp_dictset_value = const_tuple_type_object_tuple;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_116, 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 = 116;
|
|
|
|
goto try_except_handler_3;
|
|
}
|
|
}
|
|
branch_no_4:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_11;
|
|
PyObject *tmp_called_name_2;
|
|
PyObject *tmp_args_name_2;
|
|
PyObject *tmp_tuple_element_3;
|
|
PyObject *tmp_kw_name_2;
|
|
CHECK_OBJECT( tmp_class_creation_1__metaclass );
|
|
tmp_called_name_2 = tmp_class_creation_1__metaclass;
|
|
tmp_tuple_element_3 = const_str_plain_JapaneseContextAnalysis;
|
|
tmp_args_name_2 = PyTuple_New( 3 );
|
|
Py_INCREF( tmp_tuple_element_3 );
|
|
PyTuple_SET_ITEM( tmp_args_name_2, 0, tmp_tuple_element_3 );
|
|
CHECK_OBJECT( tmp_class_creation_1__bases );
|
|
tmp_tuple_element_3 = tmp_class_creation_1__bases;
|
|
Py_INCREF( tmp_tuple_element_3 );
|
|
PyTuple_SET_ITEM( tmp_args_name_2, 1, tmp_tuple_element_3 );
|
|
tmp_tuple_element_3 = locals_chardet$jpcntx_116;
|
|
Py_INCREF( tmp_tuple_element_3 );
|
|
PyTuple_SET_ITEM( tmp_args_name_2, 2, tmp_tuple_element_3 );
|
|
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
|
|
tmp_kw_name_2 = tmp_class_creation_1__class_decl_dict;
|
|
frame_78178c637b2ce9218f0071f6a2579fbf->m_frame.f_lineno = 116;
|
|
tmp_assign_source_11 = CALL_FUNCTION( tmp_called_name_2, tmp_args_name_2, tmp_kw_name_2 );
|
|
Py_DECREF( tmp_args_name_2 );
|
|
if ( tmp_assign_source_11 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 116;
|
|
|
|
goto try_except_handler_3;
|
|
}
|
|
assert( outline_0_var___class__ == NULL );
|
|
outline_0_var___class__ = tmp_assign_source_11;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( outline_0_var___class__ );
|
|
tmp_assign_source_10 = outline_0_var___class__;
|
|
Py_INCREF( tmp_assign_source_10 );
|
|
goto try_return_handler_3;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_3:;
|
|
{
|
|
Py_DECREF( locals_chardet$jpcntx_116 );
|
|
locals_chardet$jpcntx_116 = NULL;
|
|
}
|
|
{
|
|
goto try_return_handler_2;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_3:;
|
|
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_DECREF( locals_chardet$jpcntx_116 );
|
|
locals_chardet$jpcntx_116 = NULL;
|
|
}
|
|
{
|
|
// Re-raise.
|
|
exception_type = exception_keeper_type_1;
|
|
exception_value = exception_keeper_value_1;
|
|
exception_tb = exception_keeper_tb_1;
|
|
exception_lineno = exception_keeper_lineno_1;
|
|
|
|
goto try_except_handler_2;
|
|
}
|
|
// End of try:
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_2:;
|
|
{
|
|
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_2:;
|
|
exception_keeper_type_2 = exception_type;
|
|
exception_keeper_value_2 = exception_value;
|
|
exception_keeper_tb_2 = exception_tb;
|
|
exception_keeper_lineno_2 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
// 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 outline_exception_1;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
outline_exception_1:;
|
|
exception_lineno = 116;
|
|
goto try_except_handler_1;
|
|
outline_result_1:;
|
|
UPDATE_STRING_DICT1( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain_JapaneseContextAnalysis, tmp_assign_source_10 );
|
|
}
|
|
goto try_end_1;
|
|
// Exception handler code:
|
|
try_except_handler_1:;
|
|
exception_keeper_type_3 = exception_type;
|
|
exception_keeper_value_3 = exception_value;
|
|
exception_keeper_tb_3 = exception_tb;
|
|
exception_keeper_lineno_3 = exception_lineno;
|
|
exception_type = NULL;
|
|
exception_value = NULL;
|
|
exception_tb = NULL;
|
|
exception_lineno = 0;
|
|
|
|
{
|
|
Py_XDECREF( tmp_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_3;
|
|
exception_value = exception_keeper_value_3;
|
|
exception_tb = exception_keeper_tb_3;
|
|
exception_lineno = exception_keeper_lineno_3;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_1:;
|
|
}
|
|
{
|
|
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;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_12;
|
|
PyObject *tmp_tuple_element_4;
|
|
PyObject *tmp_mvar_value_1;
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain_JapaneseContextAnalysis );
|
|
|
|
if (unlikely( tmp_mvar_value_1 == NULL ))
|
|
{
|
|
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_JapaneseContextAnalysis );
|
|
}
|
|
|
|
if ( tmp_mvar_value_1 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "JapaneseContextAnalysis" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
|
|
tmp_tuple_element_4 = tmp_mvar_value_1;
|
|
tmp_assign_source_12 = PyTuple_New( 1 );
|
|
Py_INCREF( tmp_tuple_element_4 );
|
|
PyTuple_SET_ITEM( tmp_assign_source_12, 0, tmp_tuple_element_4 );
|
|
assert( tmp_class_creation_2__bases_orig == NULL );
|
|
tmp_class_creation_2__bases_orig = tmp_assign_source_12;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_13;
|
|
PyObject *tmp_dircall_arg1_2;
|
|
CHECK_OBJECT( tmp_class_creation_2__bases_orig );
|
|
tmp_dircall_arg1_2 = tmp_class_creation_2__bases_orig;
|
|
Py_INCREF( tmp_dircall_arg1_2 );
|
|
|
|
{
|
|
PyObject *dir_call_args[] = {tmp_dircall_arg1_2};
|
|
tmp_assign_source_13 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
|
|
}
|
|
if ( tmp_assign_source_13 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
assert( tmp_class_creation_2__bases == NULL );
|
|
tmp_class_creation_2__bases = tmp_assign_source_13;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_14;
|
|
tmp_assign_source_14 = PyDict_New();
|
|
assert( tmp_class_creation_2__class_decl_dict == NULL );
|
|
tmp_class_creation_2__class_decl_dict = tmp_assign_source_14;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_15;
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
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_15 = SELECT_METACLASS( tmp_metaclass_name_2, tmp_bases_name_2 );
|
|
Py_DECREF( tmp_metaclass_name_2 );
|
|
if ( tmp_assign_source_15 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
assert( tmp_class_creation_2__metaclass == NULL );
|
|
tmp_class_creation_2__metaclass = tmp_assign_source_15;
|
|
|
|
}
|
|
{
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
}
|
|
branch_no_5:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_10;
|
|
PyObject *tmp_source_name_5;
|
|
CHECK_OBJECT( tmp_class_creation_2__metaclass );
|
|
tmp_source_name_5 = tmp_class_creation_2__metaclass;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_5, 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_16;
|
|
PyObject *tmp_called_name_3;
|
|
PyObject *tmp_source_name_6;
|
|
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_6 = tmp_class_creation_2__metaclass;
|
|
tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain___prepare__ );
|
|
if ( tmp_called_name_3 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
tmp_tuple_element_5 = const_str_plain_SJISContextAnalysis;
|
|
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_78178c637b2ce9218f0071f6a2579fbf->m_frame.f_lineno = 183;
|
|
tmp_assign_source_16 = 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_16 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
assert( tmp_class_creation_2__prepared == NULL );
|
|
tmp_class_creation_2__prepared = tmp_assign_source_16;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_11;
|
|
PyObject *tmp_operand_name_2;
|
|
PyObject *tmp_source_name_7;
|
|
CHECK_OBJECT( tmp_class_creation_2__prepared );
|
|
tmp_source_name_7 = tmp_class_creation_2__prepared;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_7, 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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
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_8;
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
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_8 = BUILTIN_TYPE1( tmp_type_arg_4 );
|
|
assert( !(tmp_source_name_8 == NULL) );
|
|
tmp_tuple_element_6 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain___name__ );
|
|
Py_DECREF( tmp_source_name_8 );
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
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 = 183;
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
exception_type = tmp_raise_type_2;
|
|
Py_INCREF( tmp_raise_type_2 );
|
|
exception_value = tmp_raise_value_2;
|
|
exception_lineno = 183;
|
|
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
|
|
|
|
goto try_except_handler_4;
|
|
}
|
|
branch_no_7:;
|
|
}
|
|
goto branch_end_6;
|
|
branch_no_6:;
|
|
{
|
|
PyObject *tmp_assign_source_17;
|
|
tmp_assign_source_17 = PyDict_New();
|
|
assert( tmp_class_creation_2__prepared == NULL );
|
|
tmp_class_creation_2__prepared = tmp_assign_source_17;
|
|
|
|
}
|
|
branch_end_6:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_18;
|
|
{
|
|
PyObject *tmp_set_locals_2;
|
|
CHECK_OBJECT( tmp_class_creation_2__prepared );
|
|
tmp_set_locals_2 = tmp_class_creation_2__prepared;
|
|
locals_chardet$jpcntx_183 = tmp_set_locals_2;
|
|
Py_INCREF( tmp_set_locals_2 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_dictset_value = const_str_digest_c6e429a71fde053d8e68cdb70acfd8ce;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_183, 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 = 183;
|
|
|
|
goto try_except_handler_6;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_str_plain_SJISContextAnalysis;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_183, 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 = 183;
|
|
|
|
goto try_except_handler_6;
|
|
}
|
|
}
|
|
MAKE_OR_REUSE_FRAME( cache_frame_afeb2254c728faf07566a57a6f87faa2_3, codeobj_afeb2254c728faf07566a57a6f87faa2, module_chardet$jpcntx, sizeof(void *) );
|
|
frame_afeb2254c728faf07566a57a6f87faa2_3 = cache_frame_afeb2254c728faf07566a57a6f87faa2_3;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_afeb2254c728faf07566a57a6f87faa2_3 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_afeb2254c728faf07566a57a6f87faa2_3 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_chardet$jpcntx$$$function_7___init__( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_183, 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 = 184;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_12;
|
|
PyObject *tmp_called_name_4;
|
|
PyObject *tmp_args_element_name_1;
|
|
PyObject *tmp_called_name_5;
|
|
PyObject *tmp_args_element_name_2;
|
|
tmp_res = MAPPING_HAS_ITEM( locals_chardet$jpcntx_183, const_str_plain_property );
|
|
|
|
if ( tmp_res == -1 )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 188;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
tmp_condition_result_12 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_12 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto condexpr_true_5;
|
|
}
|
|
else
|
|
{
|
|
goto condexpr_false_5;
|
|
}
|
|
condexpr_true_5:;
|
|
tmp_called_name_4 = PyObject_GetItem( locals_chardet$jpcntx_183, const_str_plain_property );
|
|
|
|
if ( tmp_called_name_4 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "property" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 188;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
|
|
if ( tmp_called_name_4 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 188;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
tmp_args_element_name_1 = MAKE_FUNCTION_chardet$jpcntx$$$function_8_charset_name( );
|
|
|
|
|
|
|
|
frame_afeb2254c728faf07566a57a6f87faa2_3->m_frame.f_lineno = 188;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_1 };
|
|
tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_called_name_4 );
|
|
Py_DECREF( tmp_args_element_name_1 );
|
|
if ( tmp_dictset_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 188;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
goto condexpr_end_5;
|
|
condexpr_false_5:;
|
|
tmp_called_name_5 = (PyObject *)&PyProperty_Type;
|
|
tmp_args_element_name_2 = MAKE_FUNCTION_chardet$jpcntx$$$function_8_charset_name( );
|
|
|
|
|
|
|
|
frame_afeb2254c728faf07566a57a6f87faa2_3->m_frame.f_lineno = 188;
|
|
{
|
|
PyObject *call_args[] = { tmp_args_element_name_2 };
|
|
tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_5, call_args );
|
|
}
|
|
|
|
Py_DECREF( tmp_args_element_name_2 );
|
|
if ( tmp_dictset_value == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 188;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
condexpr_end_5:;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_183, const_str_plain_charset_name, 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 = 188;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_chardet$jpcntx$$$function_9_get_order( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_183, const_str_plain_get_order, 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 = 192;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_3;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_afeb2254c728faf07566a57a6f87faa2_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_afeb2254c728faf07566a57a6f87faa2_3 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_afeb2254c728faf07566a57a6f87faa2_3, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_afeb2254c728faf07566a57a6f87faa2_3->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_afeb2254c728faf07566a57a6f87faa2_3, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_afeb2254c728faf07566a57a6f87faa2_3,
|
|
type_description_2,
|
|
outline_1_var___class__
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_afeb2254c728faf07566a57a6f87faa2_3 == cache_frame_afeb2254c728faf07566a57a6f87faa2_3 )
|
|
{
|
|
Py_DECREF( frame_afeb2254c728faf07566a57a6f87faa2_3 );
|
|
}
|
|
cache_frame_afeb2254c728faf07566a57a6f87faa2_3 = NULL;
|
|
|
|
assertFrameObject( frame_afeb2254c728faf07566a57a6f87faa2_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_6;
|
|
skip_nested_handling_2:;
|
|
{
|
|
nuitka_bool tmp_condition_result_13;
|
|
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;
|
|
CHECK_OBJECT( tmp_class_creation_2__bases_orig );
|
|
tmp_compexpr_right_2 = tmp_class_creation_2__bases_orig;
|
|
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 = 183;
|
|
|
|
goto try_except_handler_6;
|
|
}
|
|
tmp_condition_result_13 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_13 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_8;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_8;
|
|
}
|
|
branch_yes_8:;
|
|
{
|
|
CHECK_OBJECT( tmp_class_creation_2__bases_orig );
|
|
tmp_dictset_value = tmp_class_creation_2__bases_orig;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_183, 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 = 183;
|
|
|
|
goto try_except_handler_6;
|
|
}
|
|
}
|
|
branch_no_8:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_19;
|
|
PyObject *tmp_called_name_6;
|
|
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_6 = tmp_class_creation_2__metaclass;
|
|
tmp_tuple_element_7 = const_str_plain_SJISContextAnalysis;
|
|
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_chardet$jpcntx_183;
|
|
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_78178c637b2ce9218f0071f6a2579fbf->m_frame.f_lineno = 183;
|
|
tmp_assign_source_19 = CALL_FUNCTION( tmp_called_name_6, tmp_args_name_4, tmp_kw_name_4 );
|
|
Py_DECREF( tmp_args_name_4 );
|
|
if ( tmp_assign_source_19 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 183;
|
|
|
|
goto try_except_handler_6;
|
|
}
|
|
assert( outline_1_var___class__ == NULL );
|
|
outline_1_var___class__ = tmp_assign_source_19;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( outline_1_var___class__ );
|
|
tmp_assign_source_18 = outline_1_var___class__;
|
|
Py_INCREF( tmp_assign_source_18 );
|
|
goto try_return_handler_6;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_6:;
|
|
{
|
|
Py_DECREF( locals_chardet$jpcntx_183 );
|
|
locals_chardet$jpcntx_183 = NULL;
|
|
}
|
|
{
|
|
goto try_return_handler_5;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_6:;
|
|
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_DECREF( locals_chardet$jpcntx_183 );
|
|
locals_chardet$jpcntx_183 = 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 try_except_handler_5;
|
|
}
|
|
// End of try:
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_5:;
|
|
{
|
|
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_5:;
|
|
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;
|
|
|
|
{
|
|
// 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 outline_exception_2;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
outline_exception_2:;
|
|
exception_lineno = 183;
|
|
goto try_except_handler_4;
|
|
outline_result_2:;
|
|
UPDATE_STRING_DICT1( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain_SJISContextAnalysis, tmp_assign_source_18 );
|
|
}
|
|
goto try_end_2;
|
|
// Exception handler code:
|
|
try_except_handler_4:;
|
|
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;
|
|
|
|
{
|
|
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_6;
|
|
exception_value = exception_keeper_value_6;
|
|
exception_tb = exception_keeper_tb_6;
|
|
exception_lineno = exception_keeper_lineno_6;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_2:;
|
|
}
|
|
{
|
|
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;
|
|
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
PyObject *tmp_assign_source_20;
|
|
PyObject *tmp_tuple_element_8;
|
|
PyObject *tmp_mvar_value_2;
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain_JapaneseContextAnalysis );
|
|
|
|
if (unlikely( tmp_mvar_value_2 == NULL ))
|
|
{
|
|
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_JapaneseContextAnalysis );
|
|
}
|
|
|
|
if ( tmp_mvar_value_2 == NULL )
|
|
{
|
|
|
|
exception_type = PyExc_NameError;
|
|
Py_INCREF( exception_type );
|
|
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "JapaneseContextAnalysis" );
|
|
exception_tb = NULL;
|
|
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
|
|
CHAIN_EXCEPTION( exception_value );
|
|
|
|
exception_lineno = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
|
|
tmp_tuple_element_8 = tmp_mvar_value_2;
|
|
tmp_assign_source_20 = PyTuple_New( 1 );
|
|
Py_INCREF( tmp_tuple_element_8 );
|
|
PyTuple_SET_ITEM( tmp_assign_source_20, 0, tmp_tuple_element_8 );
|
|
assert( tmp_class_creation_3__bases_orig == NULL );
|
|
tmp_class_creation_3__bases_orig = tmp_assign_source_20;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_21;
|
|
PyObject *tmp_dircall_arg1_3;
|
|
CHECK_OBJECT( tmp_class_creation_3__bases_orig );
|
|
tmp_dircall_arg1_3 = tmp_class_creation_3__bases_orig;
|
|
Py_INCREF( tmp_dircall_arg1_3 );
|
|
|
|
{
|
|
PyObject *dir_call_args[] = {tmp_dircall_arg1_3};
|
|
tmp_assign_source_21 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
|
|
}
|
|
if ( tmp_assign_source_21 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
assert( tmp_class_creation_3__bases == NULL );
|
|
tmp_class_creation_3__bases = tmp_assign_source_21;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_22;
|
|
tmp_assign_source_22 = PyDict_New();
|
|
assert( tmp_class_creation_3__class_decl_dict == NULL );
|
|
tmp_class_creation_3__class_decl_dict = tmp_assign_source_22;
|
|
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_23;
|
|
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 = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
tmp_condition_result_14 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_14 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto condexpr_true_6;
|
|
}
|
|
else
|
|
{
|
|
goto condexpr_false_6;
|
|
}
|
|
condexpr_true_6:;
|
|
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 = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
goto condexpr_end_6;
|
|
condexpr_false_6:;
|
|
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 = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
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_7;
|
|
}
|
|
else
|
|
{
|
|
goto condexpr_false_7;
|
|
}
|
|
condexpr_true_7:;
|
|
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 = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
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 = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
goto condexpr_end_7;
|
|
condexpr_false_7:;
|
|
tmp_metaclass_name_3 = (PyObject *)&PyType_Type;
|
|
Py_INCREF( tmp_metaclass_name_3 );
|
|
condexpr_end_7:;
|
|
condexpr_end_6:;
|
|
CHECK_OBJECT( tmp_class_creation_3__bases );
|
|
tmp_bases_name_3 = tmp_class_creation_3__bases;
|
|
tmp_assign_source_23 = SELECT_METACLASS( tmp_metaclass_name_3, tmp_bases_name_3 );
|
|
Py_DECREF( tmp_metaclass_name_3 );
|
|
if ( tmp_assign_source_23 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
assert( tmp_class_creation_3__metaclass == NULL );
|
|
tmp_class_creation_3__metaclass = tmp_assign_source_23;
|
|
|
|
}
|
|
{
|
|
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 = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
tmp_condition_result_16 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_16 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_9;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_9;
|
|
}
|
|
branch_yes_9:;
|
|
{
|
|
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 = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
}
|
|
branch_no_9:;
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_17;
|
|
PyObject *tmp_source_name_9;
|
|
CHECK_OBJECT( tmp_class_creation_3__metaclass );
|
|
tmp_source_name_9 = tmp_class_creation_3__metaclass;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_9, 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_10;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_10;
|
|
}
|
|
branch_yes_10:;
|
|
{
|
|
PyObject *tmp_assign_source_24;
|
|
PyObject *tmp_called_name_7;
|
|
PyObject *tmp_source_name_10;
|
|
PyObject *tmp_args_name_5;
|
|
PyObject *tmp_tuple_element_9;
|
|
PyObject *tmp_kw_name_5;
|
|
CHECK_OBJECT( tmp_class_creation_3__metaclass );
|
|
tmp_source_name_10 = tmp_class_creation_3__metaclass;
|
|
tmp_called_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain___prepare__ );
|
|
if ( tmp_called_name_7 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
tmp_tuple_element_9 = const_str_plain_EUCJPContextAnalysis;
|
|
tmp_args_name_5 = PyTuple_New( 2 );
|
|
Py_INCREF( tmp_tuple_element_9 );
|
|
PyTuple_SET_ITEM( tmp_args_name_5, 0, tmp_tuple_element_9 );
|
|
CHECK_OBJECT( tmp_class_creation_3__bases );
|
|
tmp_tuple_element_9 = tmp_class_creation_3__bases;
|
|
Py_INCREF( tmp_tuple_element_9 );
|
|
PyTuple_SET_ITEM( tmp_args_name_5, 1, tmp_tuple_element_9 );
|
|
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
|
|
tmp_kw_name_5 = tmp_class_creation_3__class_decl_dict;
|
|
frame_78178c637b2ce9218f0071f6a2579fbf->m_frame.f_lineno = 212;
|
|
tmp_assign_source_24 = CALL_FUNCTION( tmp_called_name_7, tmp_args_name_5, tmp_kw_name_5 );
|
|
Py_DECREF( tmp_called_name_7 );
|
|
Py_DECREF( tmp_args_name_5 );
|
|
if ( tmp_assign_source_24 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
assert( tmp_class_creation_3__prepared == NULL );
|
|
tmp_class_creation_3__prepared = tmp_assign_source_24;
|
|
|
|
}
|
|
{
|
|
nuitka_bool tmp_condition_result_18;
|
|
PyObject *tmp_operand_name_3;
|
|
PyObject *tmp_source_name_11;
|
|
CHECK_OBJECT( tmp_class_creation_3__prepared );
|
|
tmp_source_name_11 = tmp_class_creation_3__prepared;
|
|
tmp_res = PyObject_HasAttr( tmp_source_name_11, 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 = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
tmp_condition_result_18 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_18 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_11;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_11;
|
|
}
|
|
branch_yes_11:;
|
|
{
|
|
PyObject *tmp_raise_type_3;
|
|
PyObject *tmp_raise_value_3;
|
|
PyObject *tmp_left_name_3;
|
|
PyObject *tmp_right_name_3;
|
|
PyObject *tmp_tuple_element_10;
|
|
PyObject *tmp_getattr_target_3;
|
|
PyObject *tmp_getattr_attr_3;
|
|
PyObject *tmp_getattr_default_3;
|
|
PyObject *tmp_source_name_12;
|
|
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_10 = BUILTIN_GETATTR( tmp_getattr_target_3, tmp_getattr_attr_3, tmp_getattr_default_3 );
|
|
if ( tmp_tuple_element_10 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
tmp_right_name_3 = PyTuple_New( 2 );
|
|
PyTuple_SET_ITEM( tmp_right_name_3, 0, tmp_tuple_element_10 );
|
|
CHECK_OBJECT( tmp_class_creation_3__prepared );
|
|
tmp_type_arg_6 = tmp_class_creation_3__prepared;
|
|
tmp_source_name_12 = BUILTIN_TYPE1( tmp_type_arg_6 );
|
|
assert( !(tmp_source_name_12 == NULL) );
|
|
tmp_tuple_element_10 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain___name__ );
|
|
Py_DECREF( tmp_source_name_12 );
|
|
if ( tmp_tuple_element_10 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
Py_DECREF( tmp_right_name_3 );
|
|
|
|
exception_lineno = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
PyTuple_SET_ITEM( tmp_right_name_3, 1, tmp_tuple_element_10 );
|
|
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 = 212;
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
exception_type = tmp_raise_type_3;
|
|
Py_INCREF( tmp_raise_type_3 );
|
|
exception_value = tmp_raise_value_3;
|
|
exception_lineno = 212;
|
|
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
|
|
|
|
goto try_except_handler_7;
|
|
}
|
|
branch_no_11:;
|
|
}
|
|
goto branch_end_10;
|
|
branch_no_10:;
|
|
{
|
|
PyObject *tmp_assign_source_25;
|
|
tmp_assign_source_25 = PyDict_New();
|
|
assert( tmp_class_creation_3__prepared == NULL );
|
|
tmp_class_creation_3__prepared = tmp_assign_source_25;
|
|
|
|
}
|
|
branch_end_10:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_26;
|
|
{
|
|
PyObject *tmp_set_locals_3;
|
|
CHECK_OBJECT( tmp_class_creation_3__prepared );
|
|
tmp_set_locals_3 = tmp_class_creation_3__prepared;
|
|
locals_chardet$jpcntx_212 = tmp_set_locals_3;
|
|
Py_INCREF( tmp_set_locals_3 );
|
|
}
|
|
{
|
|
// Tried code:
|
|
{
|
|
// Tried code:
|
|
{
|
|
tmp_dictset_value = const_str_digest_c6e429a71fde053d8e68cdb70acfd8ce;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_212, 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 = 212;
|
|
|
|
goto try_except_handler_9;
|
|
}
|
|
}
|
|
{
|
|
tmp_dictset_value = const_str_plain_EUCJPContextAnalysis;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_212, 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 = 212;
|
|
|
|
goto try_except_handler_9;
|
|
}
|
|
}
|
|
MAKE_OR_REUSE_FRAME( cache_frame_b8a09caac410d7d4675278a9bd7375d0_4, codeobj_b8a09caac410d7d4675278a9bd7375d0, module_chardet$jpcntx, sizeof(void *) );
|
|
frame_b8a09caac410d7d4675278a9bd7375d0_4 = cache_frame_b8a09caac410d7d4675278a9bd7375d0_4;
|
|
|
|
// Push the new frame as the currently active one.
|
|
pushFrameStack( frame_b8a09caac410d7d4675278a9bd7375d0_4 );
|
|
|
|
// Mark the frame object as in use, ref count 1 will be up for reuse.
|
|
assert( Py_REFCNT( frame_b8a09caac410d7d4675278a9bd7375d0_4 ) == 2 ); // Frame stack
|
|
|
|
// Framed code:
|
|
{
|
|
tmp_dictset_value = MAKE_FUNCTION_chardet$jpcntx$$$function_10_get_order( );
|
|
|
|
|
|
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_212, const_str_plain_get_order, 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 = 213;
|
|
type_description_2 = "o";
|
|
goto frame_exception_exit_4;
|
|
}
|
|
}
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_b8a09caac410d7d4675278a9bd7375d0_4 );
|
|
#endif
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
goto frame_no_exception_3;
|
|
|
|
frame_exception_exit_4:;
|
|
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_b8a09caac410d7d4675278a9bd7375d0_4 );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_b8a09caac410d7d4675278a9bd7375d0_4, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_b8a09caac410d7d4675278a9bd7375d0_4->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_b8a09caac410d7d4675278a9bd7375d0_4, exception_lineno );
|
|
}
|
|
|
|
// Attachs locals to frame if any.
|
|
Nuitka_Frame_AttachLocals(
|
|
(struct Nuitka_FrameObject *)frame_b8a09caac410d7d4675278a9bd7375d0_4,
|
|
type_description_2,
|
|
outline_2_var___class__
|
|
);
|
|
|
|
|
|
// Release cached frame.
|
|
if ( frame_b8a09caac410d7d4675278a9bd7375d0_4 == cache_frame_b8a09caac410d7d4675278a9bd7375d0_4 )
|
|
{
|
|
Py_DECREF( frame_b8a09caac410d7d4675278a9bd7375d0_4 );
|
|
}
|
|
cache_frame_b8a09caac410d7d4675278a9bd7375d0_4 = NULL;
|
|
|
|
assertFrameObject( frame_b8a09caac410d7d4675278a9bd7375d0_4 );
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto nested_frame_exit_3;
|
|
|
|
frame_no_exception_3:;
|
|
goto skip_nested_handling_3;
|
|
nested_frame_exit_3:;
|
|
|
|
goto try_except_handler_9;
|
|
skip_nested_handling_3:;
|
|
{
|
|
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;
|
|
CHECK_OBJECT( tmp_class_creation_3__bases_orig );
|
|
tmp_compexpr_right_3 = tmp_class_creation_3__bases_orig;
|
|
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 = 212;
|
|
|
|
goto try_except_handler_9;
|
|
}
|
|
tmp_condition_result_19 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
|
|
if ( tmp_condition_result_19 == NUITKA_BOOL_TRUE )
|
|
{
|
|
goto branch_yes_12;
|
|
}
|
|
else
|
|
{
|
|
goto branch_no_12;
|
|
}
|
|
branch_yes_12:;
|
|
{
|
|
CHECK_OBJECT( tmp_class_creation_3__bases_orig );
|
|
tmp_dictset_value = tmp_class_creation_3__bases_orig;
|
|
tmp_res = PyObject_SetItem( locals_chardet$jpcntx_212, 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 = 212;
|
|
|
|
goto try_except_handler_9;
|
|
}
|
|
}
|
|
branch_no_12:;
|
|
}
|
|
{
|
|
PyObject *tmp_assign_source_27;
|
|
PyObject *tmp_called_name_8;
|
|
PyObject *tmp_args_name_6;
|
|
PyObject *tmp_tuple_element_11;
|
|
PyObject *tmp_kw_name_6;
|
|
CHECK_OBJECT( tmp_class_creation_3__metaclass );
|
|
tmp_called_name_8 = tmp_class_creation_3__metaclass;
|
|
tmp_tuple_element_11 = const_str_plain_EUCJPContextAnalysis;
|
|
tmp_args_name_6 = PyTuple_New( 3 );
|
|
Py_INCREF( tmp_tuple_element_11 );
|
|
PyTuple_SET_ITEM( tmp_args_name_6, 0, tmp_tuple_element_11 );
|
|
CHECK_OBJECT( tmp_class_creation_3__bases );
|
|
tmp_tuple_element_11 = tmp_class_creation_3__bases;
|
|
Py_INCREF( tmp_tuple_element_11 );
|
|
PyTuple_SET_ITEM( tmp_args_name_6, 1, tmp_tuple_element_11 );
|
|
tmp_tuple_element_11 = locals_chardet$jpcntx_212;
|
|
Py_INCREF( tmp_tuple_element_11 );
|
|
PyTuple_SET_ITEM( tmp_args_name_6, 2, tmp_tuple_element_11 );
|
|
CHECK_OBJECT( tmp_class_creation_3__class_decl_dict );
|
|
tmp_kw_name_6 = tmp_class_creation_3__class_decl_dict;
|
|
frame_78178c637b2ce9218f0071f6a2579fbf->m_frame.f_lineno = 212;
|
|
tmp_assign_source_27 = CALL_FUNCTION( tmp_called_name_8, tmp_args_name_6, tmp_kw_name_6 );
|
|
Py_DECREF( tmp_args_name_6 );
|
|
if ( tmp_assign_source_27 == NULL )
|
|
{
|
|
assert( ERROR_OCCURRED() );
|
|
|
|
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
|
|
|
|
|
|
exception_lineno = 212;
|
|
|
|
goto try_except_handler_9;
|
|
}
|
|
assert( outline_2_var___class__ == NULL );
|
|
outline_2_var___class__ = tmp_assign_source_27;
|
|
|
|
}
|
|
{
|
|
CHECK_OBJECT( outline_2_var___class__ );
|
|
tmp_assign_source_26 = outline_2_var___class__;
|
|
Py_INCREF( tmp_assign_source_26 );
|
|
goto try_return_handler_9;
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_9:;
|
|
{
|
|
Py_DECREF( locals_chardet$jpcntx_212 );
|
|
locals_chardet$jpcntx_212 = NULL;
|
|
}
|
|
{
|
|
goto try_return_handler_8;
|
|
}
|
|
// Exception handler code:
|
|
try_except_handler_9:;
|
|
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_DECREF( locals_chardet$jpcntx_212 );
|
|
locals_chardet$jpcntx_212 = 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 try_except_handler_8;
|
|
}
|
|
// End of try:
|
|
}
|
|
// tried codes exits in all cases
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
// Return handler code:
|
|
try_return_handler_8:;
|
|
{
|
|
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_8:;
|
|
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;
|
|
|
|
{
|
|
// 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 outline_exception_3;
|
|
}
|
|
// End of try:
|
|
}
|
|
// Return statement must have exited already.
|
|
NUITKA_CANNOT_GET_HERE( chardet$jpcntx );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
outline_exception_3:;
|
|
exception_lineno = 212;
|
|
goto try_except_handler_7;
|
|
outline_result_3:;
|
|
UPDATE_STRING_DICT1( moduledict_chardet$jpcntx, (Nuitka_StringObject *)const_str_plain_EUCJPContextAnalysis, tmp_assign_source_26 );
|
|
}
|
|
goto try_end_3;
|
|
// Exception handler code:
|
|
try_except_handler_7:;
|
|
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;
|
|
|
|
{
|
|
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_9;
|
|
exception_value = exception_keeper_value_9;
|
|
exception_tb = exception_keeper_tb_9;
|
|
exception_lineno = exception_keeper_lineno_9;
|
|
|
|
goto frame_exception_exit_1;
|
|
}
|
|
// End of try:
|
|
try_end_3:;
|
|
}
|
|
|
|
// Restore frame exception if necessary.
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_78178c637b2ce9218f0071f6a2579fbf );
|
|
#endif
|
|
popFrameStack();
|
|
|
|
assertFrameObject( frame_78178c637b2ce9218f0071f6a2579fbf );
|
|
|
|
goto frame_no_exception_4;
|
|
|
|
frame_exception_exit_1:;
|
|
#if 0
|
|
RESTORE_FRAME_EXCEPTION( frame_78178c637b2ce9218f0071f6a2579fbf );
|
|
#endif
|
|
|
|
if ( exception_tb == NULL )
|
|
{
|
|
exception_tb = MAKE_TRACEBACK( frame_78178c637b2ce9218f0071f6a2579fbf, exception_lineno );
|
|
}
|
|
else if ( exception_tb->tb_frame != &frame_78178c637b2ce9218f0071f6a2579fbf->m_frame )
|
|
{
|
|
exception_tb = ADD_TRACEBACK( exception_tb, frame_78178c637b2ce9218f0071f6a2579fbf, exception_lineno );
|
|
}
|
|
|
|
// Put the previous frame back on top.
|
|
popFrameStack();
|
|
|
|
// Return the error.
|
|
goto module_exception_exit;
|
|
|
|
frame_no_exception_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;
|
|
|
|
}
|
|
|
|
return MOD_RETURN_VALUE( module_chardet$jpcntx );
|
|
module_exception_exit:
|
|
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
|
|
return MOD_RETURN_VALUE( NULL );
|
|
}
|