/* Generated code for Python source for module 'telegram.utils.helpers' * 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_telegram$utils$helpers 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_telegram$utils$helpers; PyDictObject *moduledict_telegram$utils$helpers; /* The module constants used, if any. */ static PyObject *const_str_plain_signum; extern PyObject *const_str_angle_dictcontraction; extern PyObject *const_str_plain_entity; extern PyObject *const_str_plain_Message; extern PyObject *const_str_digest_2fe71b40974e92f7a4ed2043bfd21fa9; extern PyObject *const_str_plain_escape_markdown; static PyObject *const_str_digest_75d5f84901235cc0d1d1b5ff3236b572; extern PyObject *const_str_plain_sorted; extern PyObject *const_str_plain_i; extern PyObject *const_str_plain___file__; extern PyObject *const_str_plain_fromtimestamp; extern PyObject *const_str_plain_mktime; static PyObject *const_str_digest_965457f88af4f27ec2bcbc788b862139; extern PyObject *const_str_plain_items; extern PyObject *const_tuple_str_plain_escape_tuple; static PyObject *const_str_plain_signal; extern PyObject *const_str_plain_sub; static PyObject *const_tuple_str_plain_mktime_tuple; static PyObject *const_str_digest_983fd002c7da0a6e527294df868db59f; static PyObject *const_tuple_str_plain_unixtime_tuple; static PyObject *const_tuple_79b608f570ef9b15a74ff033b07cee1f_tuple; static PyObject *const_str_digest_74268e32775dc5db6b09a9ae94d6b36c; extern PyObject *const_str_plain_mention_markdown; extern PyObject *const_str_plain_from_timestamp; static PyObject *const_str_plain_effective_message_type; extern PyObject *const_str_plain___doc__; extern PyObject *const_str_plain_re; extern PyObject *const_str_plain_time; extern PyObject *const_str_plain_timetuple; static PyObject *const_str_digest_04d9e98bcb1439b9189d31efc5460cee; extern PyObject *const_str_plain_mention_html; static PyObject *const_str_digest_f7bb88bd3f45ab25e429964235434758; static PyObject *const_str_plain_dt_obj; extern PyObject *const_str_plain_int; static PyObject *const_str_plain_SIG; extern PyObject *const_str_plain_timestamp; extern PyObject *const_str_plain_MESSAGE_TYPES; extern PyObject *const_str_plain_message; static PyObject *const_str_plain__timestamp; static PyObject *const_tuple_str_plain_SIG_tuple; extern PyObject *const_str_digest_ced73610be43e5643f84cde54164dc35; static PyObject *const_str_digest_35e5e1aea146155034e4a8ae91f2fe50; static PyObject *const_str_digest_e6664e69a9d3de5b1ec4efa99180a2c8; extern PyObject *const_str_plain_telegram; extern PyObject *const_tuple_empty; extern PyObject *const_str_plain_datetime; extern PyObject *const_str_plain_reversed; extern PyObject *const_str_plain_name; extern PyObject *const_tuple_str_plain_k_str_plain_v_tuple; extern PyObject *const_tuple_str_plain_Message_tuple; static PyObject *const_str_digest_001e7e5b1cb6c309534a430f123736ae; static PyObject *const_tuple_str_plain_signum_tuple; static PyObject *const_tuple_str_plain_text_str_plain_escape_chars_tuple; extern PyObject *const_str_plain_k; static PyObject *const_str_plain__signames; static PyObject *const_str_digest_8e8417bf2d16d166cfd486d02da6f05e; extern PyObject *const_tuple_str_plain_Update_tuple; extern PyObject *const_int_0; extern PyObject *const_str_plain_text; extern PyObject *const_str_plain_html; static PyObject *const_str_plain_SIG_; static PyObject *const_str_plain_unixtime; static PyObject *const_str_digest_77938f8c93241f9cf015a87058daca9d; static PyObject *const_str_digest_2cbe2b337dee2e8b051e197b4a9b749f; extern PyObject *const_str_plain___cached__; extern PyObject *const_str_plain_v; static PyObject *const_tuple_str_plain_user_id_str_plain_name_tuple; extern PyObject *const_str_plain_effective_message; extern PyObject *const_str_plain_to_timestamp; static PyObject *const_tuple_str_plain_dt_obj_tuple; static PyObject *const_tuple_str_plain_SIG__tuple; static PyObject *const_str_digest_a063deb96efd03a85cbf7d072d36a610; extern PyObject *const_str_plain_user_id; static PyObject *const_str_plain_get_signal_name; static PyObject *const_str_digest_b19da6ff8a987c5b3652bb10ab70cadc; static PyObject *const_str_plain_escape_chars; extern PyObject *const_str_plain_Update; static PyObject *const_str_digest_81a3f1c5f5a5a5df4edd190ac8eabffc; extern PyObject *const_str_plain_format; extern PyObject *const_str_plain_startswith; extern PyObject *const_tuple_str_plain_datetime_tuple; extern PyObject *const_str_plain_escape; static PyObject *module_filename_obj; static bool constants_created = false; static void createModuleConstants( void ) { const_str_plain_signum = UNSTREAM_STRING( &constant_bin[ 1445471 ], 6, 1 ); const_str_digest_75d5f84901235cc0d1d1b5ff3236b572 = UNSTREAM_STRING( &constant_bin[ 1445477 ], 81, 0 ); const_str_digest_965457f88af4f27ec2bcbc788b862139 = UNSTREAM_STRING( &constant_bin[ 1445558 ], 223, 0 ); const_str_plain_signal = UNSTREAM_STRING( &constant_bin[ 626794 ], 6, 1 ); const_tuple_str_plain_mktime_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_mktime_tuple, 0, const_str_plain_mktime ); Py_INCREF( const_str_plain_mktime ); const_str_digest_983fd002c7da0a6e527294df868db59f = UNSTREAM_STRING( &constant_bin[ 1445781 ], 31, 0 ); const_tuple_str_plain_unixtime_tuple = PyTuple_New( 1 ); const_str_plain_unixtime = UNSTREAM_STRING( &constant_bin[ 1445496 ], 8, 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_unixtime_tuple, 0, const_str_plain_unixtime ); Py_INCREF( const_str_plain_unixtime ); const_tuple_79b608f570ef9b15a74ff033b07cee1f_tuple = PyTuple_New( 5 ); PyTuple_SET_ITEM( const_tuple_79b608f570ef9b15a74ff033b07cee1f_tuple, 0, const_str_plain_entity ); Py_INCREF( const_str_plain_entity ); PyTuple_SET_ITEM( const_tuple_79b608f570ef9b15a74ff033b07cee1f_tuple, 1, const_str_plain_Message ); Py_INCREF( const_str_plain_Message ); PyTuple_SET_ITEM( const_tuple_79b608f570ef9b15a74ff033b07cee1f_tuple, 2, const_str_plain_Update ); Py_INCREF( const_str_plain_Update ); PyTuple_SET_ITEM( const_tuple_79b608f570ef9b15a74ff033b07cee1f_tuple, 3, const_str_plain_message ); Py_INCREF( const_str_plain_message ); PyTuple_SET_ITEM( const_tuple_79b608f570ef9b15a74ff033b07cee1f_tuple, 4, const_str_plain_i ); Py_INCREF( const_str_plain_i ); const_str_digest_74268e32775dc5db6b09a9ae94d6b36c = UNSTREAM_STRING( &constant_bin[ 1445812 ], 38, 0 ); const_str_plain_effective_message_type = UNSTREAM_STRING( &constant_bin[ 1445850 ], 22, 1 ); const_str_digest_04d9e98bcb1439b9189d31efc5460cee = UNSTREAM_STRING( &constant_bin[ 1445872 ], 50, 0 ); const_str_digest_f7bb88bd3f45ab25e429964235434758 = UNSTREAM_STRING( &constant_bin[ 1445922 ], 32, 0 ); const_str_plain_dt_obj = UNSTREAM_STRING( &constant_bin[ 1445954 ], 6, 1 ); const_str_plain_SIG = UNSTREAM_STRING( &constant_bin[ 449773 ], 3, 1 ); const_str_plain__timestamp = UNSTREAM_STRING( &constant_bin[ 471122 ], 10, 1 ); const_tuple_str_plain_SIG_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_SIG_tuple, 0, const_str_plain_SIG ); Py_INCREF( const_str_plain_SIG ); const_str_digest_35e5e1aea146155034e4a8ae91f2fe50 = UNSTREAM_STRING( &constant_bin[ 1445960 ], 6, 0 ); const_str_digest_e6664e69a9d3de5b1ec4efa99180a2c8 = UNSTREAM_STRING( &constant_bin[ 1445966 ], 51, 0 ); const_str_digest_001e7e5b1cb6c309534a430f123736ae = UNSTREAM_STRING( &constant_bin[ 1446017 ], 88, 0 ); const_tuple_str_plain_signum_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_signum_tuple, 0, const_str_plain_signum ); Py_INCREF( const_str_plain_signum ); const_tuple_str_plain_text_str_plain_escape_chars_tuple = PyTuple_New( 2 ); PyTuple_SET_ITEM( const_tuple_str_plain_text_str_plain_escape_chars_tuple, 0, const_str_plain_text ); Py_INCREF( const_str_plain_text ); const_str_plain_escape_chars = UNSTREAM_STRING( &constant_bin[ 1446105 ], 12, 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_text_str_plain_escape_chars_tuple, 1, const_str_plain_escape_chars ); Py_INCREF( const_str_plain_escape_chars ); const_str_plain__signames = UNSTREAM_STRING( &constant_bin[ 1446117 ], 9, 1 ); const_str_digest_8e8417bf2d16d166cfd486d02da6f05e = UNSTREAM_STRING( &constant_bin[ 1446126 ], 41, 0 ); const_str_plain_SIG_ = UNSTREAM_STRING( &constant_bin[ 510558 ], 4, 1 ); const_str_digest_77938f8c93241f9cf015a87058daca9d = UNSTREAM_STRING( &constant_bin[ 1446167 ], 295, 0 ); const_str_digest_2cbe2b337dee2e8b051e197b4a9b749f = UNSTREAM_STRING( &constant_bin[ 1446462 ], 219, 0 ); const_tuple_str_plain_user_id_str_plain_name_tuple = PyTuple_New( 2 ); PyTuple_SET_ITEM( const_tuple_str_plain_user_id_str_plain_name_tuple, 0, const_str_plain_user_id ); Py_INCREF( const_str_plain_user_id ); PyTuple_SET_ITEM( const_tuple_str_plain_user_id_str_plain_name_tuple, 1, const_str_plain_name ); Py_INCREF( const_str_plain_name ); const_tuple_str_plain_dt_obj_tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_dt_obj_tuple, 0, const_str_plain_dt_obj ); Py_INCREF( const_str_plain_dt_obj ); const_tuple_str_plain_SIG__tuple = PyTuple_New( 1 ); PyTuple_SET_ITEM( const_tuple_str_plain_SIG__tuple, 0, const_str_plain_SIG_ ); Py_INCREF( const_str_plain_SIG_ ); const_str_digest_a063deb96efd03a85cbf7d072d36a610 = UNSTREAM_STRING( &constant_bin[ 1446681 ], 21, 0 ); const_str_plain_get_signal_name = UNSTREAM_STRING( &constant_bin[ 1446702 ], 15, 1 ); const_str_digest_b19da6ff8a987c5b3652bb10ab70cadc = UNSTREAM_STRING( &constant_bin[ 1446717 ], 6, 0 ); const_str_digest_81a3f1c5f5a5a5df4edd190ac8eabffc = UNSTREAM_STRING( &constant_bin[ 1446723 ], 58, 0 ); constants_created = true; } #ifndef __NUITKA_NO_ASSERT__ void checkModuleConstants_telegram$utils$helpers( void ) { // The module may not have been used at all. if (constants_created == false) return; } #endif // The module code objects. static PyCodeObject *codeobj_4a352ecbe272e0d43d75941a52723f69; static PyCodeObject *codeobj_0dcf9d78146ba062ee2950110da0d316; static PyCodeObject *codeobj_b7adb4b29525bdf66ec26ac67ca9ed5a; static PyCodeObject *codeobj_04c1a83205d2a33d25e9d507b6277a86; static PyCodeObject *codeobj_12527d293b8524e1a2fbe0f47050eaf2; static PyCodeObject *codeobj_ed4929960a4ed09709e49add9f69118e; static PyCodeObject *codeobj_8dcd5fc2b9943781eb4b16056a9a5351; static PyCodeObject *codeobj_6c69ae4dfb55f7892fe96d19d8da3d80; static PyCodeObject *codeobj_f868984cfdd2bc13b2d97225b7629b0f; static PyCodeObject *codeobj_37b3a6dddee4d4c382f11d61ac1e345e; static PyCodeObject *codeobj_2730bf337ed9228ba02fabe8910dead4; static void createModuleCodeObjects(void) { module_filename_obj = const_str_digest_81a3f1c5f5a5a5df4edd190ac8eabffc; codeobj_4a352ecbe272e0d43d75941a52723f69 = MAKE_CODEOBJ( module_filename_obj, const_str_angle_dictcontraction, 27, const_tuple_str_plain_k_str_plain_v_tuple, 1, 0, CO_NEWLOCALS | CO_NOFREE ); codeobj_0dcf9d78146ba062ee2950110da0d316 = MAKE_CODEOBJ( module_filename_obj, const_str_digest_983fd002c7da0a6e527294df868db59f, 1, const_tuple_empty, 0, 0, CO_NOFREE ); codeobj_b7adb4b29525bdf66ec26ac67ca9ed5a = MAKE_CODEOBJ( module_filename_obj, const_str_plain__timestamp, 41, const_tuple_str_plain_dt_obj_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_04c1a83205d2a33d25e9d507b6277a86 = MAKE_CODEOBJ( module_filename_obj, const_str_plain__timestamp, 47, const_tuple_str_plain_dt_obj_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_12527d293b8524e1a2fbe0f47050eaf2 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_effective_message_type, 113, const_tuple_79b608f570ef9b15a74ff033b07cee1f_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_ed4929960a4ed09709e49add9f69118e = MAKE_CODEOBJ( module_filename_obj, const_str_plain_escape_markdown, 51, const_tuple_str_plain_text_str_plain_escape_chars_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_8dcd5fc2b9943781eb4b16056a9a5351 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_from_timestamp, 72, const_tuple_str_plain_unixtime_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_6c69ae4dfb55f7892fe96d19d8da3d80 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_get_signal_name, 32, const_tuple_str_plain_signum_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_f868984cfdd2bc13b2d97225b7629b0f = MAKE_CODEOBJ( module_filename_obj, const_str_plain_mention_html, 87, const_tuple_str_plain_user_id_str_plain_name_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_37b3a6dddee4d4c382f11d61ac1e345e = MAKE_CODEOBJ( module_filename_obj, const_str_plain_mention_markdown, 100, const_tuple_str_plain_user_id_str_plain_name_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); codeobj_2730bf337ed9228ba02fabe8910dead4 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_to_timestamp, 57, const_tuple_str_plain_dt_obj_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE ); } // The module function declarations. static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_1_get_signal_name( ); static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_2__timestamp( ); static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_3__timestamp( ); static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_4_escape_markdown( ); static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_5_to_timestamp( ); static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_6_from_timestamp( ); static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_7_mention_html( ); static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_8_mention_markdown( ); static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_9_effective_message_type( ); // The module function definitions. static PyObject *impl_telegram$utils$helpers$$$function_1_get_signal_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_signum = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_6c69ae4dfb55f7892fe96d19d8da3d80; 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_6c69ae4dfb55f7892fe96d19d8da3d80 = 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_6c69ae4dfb55f7892fe96d19d8da3d80, codeobj_6c69ae4dfb55f7892fe96d19d8da3d80, module_telegram$utils$helpers, sizeof(void *) ); frame_6c69ae4dfb55f7892fe96d19d8da3d80 = cache_frame_6c69ae4dfb55f7892fe96d19d8da3d80; // Push the new frame as the currently active one. pushFrameStack( frame_6c69ae4dfb55f7892fe96d19d8da3d80 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_6c69ae4dfb55f7892fe96d19d8da3d80 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_subscribed_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_subscript_name_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain__signames ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__signames ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_signames" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 34; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_subscribed_name_1 = tmp_mvar_value_1; CHECK_OBJECT( par_signum ); tmp_subscript_name_1 = par_signum; tmp_return_value = LOOKUP_SUBSCRIPT( tmp_subscribed_name_1, tmp_subscript_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 34; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_6c69ae4dfb55f7892fe96d19d8da3d80 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_6c69ae4dfb55f7892fe96d19d8da3d80 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_6c69ae4dfb55f7892fe96d19d8da3d80 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_6c69ae4dfb55f7892fe96d19d8da3d80, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_6c69ae4dfb55f7892fe96d19d8da3d80->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_6c69ae4dfb55f7892fe96d19d8da3d80, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_6c69ae4dfb55f7892fe96d19d8da3d80, type_description_1, par_signum ); // Release cached frame. if ( frame_6c69ae4dfb55f7892fe96d19d8da3d80 == cache_frame_6c69ae4dfb55f7892fe96d19d8da3d80 ) { Py_DECREF( frame_6c69ae4dfb55f7892fe96d19d8da3d80 ); } cache_frame_6c69ae4dfb55f7892fe96d19d8da3d80 = NULL; assertFrameObject( frame_6c69ae4dfb55f7892fe96d19d8da3d80 ); // 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( telegram$utils$helpers$$$function_1_get_signal_name ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_signum ); par_signum = 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_signum ); par_signum = 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( telegram$utils$helpers$$$function_1_get_signal_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_telegram$utils$helpers$$$function_2__timestamp( 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_dt_obj = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_b7adb4b29525bdf66ec26ac67ca9ed5a; 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_b7adb4b29525bdf66ec26ac67ca9ed5a = 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_b7adb4b29525bdf66ec26ac67ca9ed5a, codeobj_b7adb4b29525bdf66ec26ac67ca9ed5a, module_telegram$utils$helpers, sizeof(void *) ); frame_b7adb4b29525bdf66ec26ac67ca9ed5a = cache_frame_b7adb4b29525bdf66ec26ac67ca9ed5a; // Push the new frame as the currently active one. pushFrameStack( frame_b7adb4b29525bdf66ec26ac67ca9ed5a ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_b7adb4b29525bdf66ec26ac67ca9ed5a ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_instance_1; CHECK_OBJECT( par_dt_obj ); tmp_called_instance_1 = par_dt_obj; frame_b7adb4b29525bdf66ec26ac67ca9ed5a->m_frame.f_lineno = 42; tmp_return_value = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_timestamp ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 42; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_b7adb4b29525bdf66ec26ac67ca9ed5a ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_b7adb4b29525bdf66ec26ac67ca9ed5a ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_b7adb4b29525bdf66ec26ac67ca9ed5a ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_b7adb4b29525bdf66ec26ac67ca9ed5a, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_b7adb4b29525bdf66ec26ac67ca9ed5a->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_b7adb4b29525bdf66ec26ac67ca9ed5a, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_b7adb4b29525bdf66ec26ac67ca9ed5a, type_description_1, par_dt_obj ); // Release cached frame. if ( frame_b7adb4b29525bdf66ec26ac67ca9ed5a == cache_frame_b7adb4b29525bdf66ec26ac67ca9ed5a ) { Py_DECREF( frame_b7adb4b29525bdf66ec26ac67ca9ed5a ); } cache_frame_b7adb4b29525bdf66ec26ac67ca9ed5a = NULL; assertFrameObject( frame_b7adb4b29525bdf66ec26ac67ca9ed5a ); // 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( telegram$utils$helpers$$$function_2__timestamp ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_dt_obj ); par_dt_obj = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_dt_obj ); par_dt_obj = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( telegram$utils$helpers$$$function_2__timestamp ); 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_telegram$utils$helpers$$$function_3__timestamp( 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_dt_obj = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_04c1a83205d2a33d25e9d507b6277a86; 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_04c1a83205d2a33d25e9d507b6277a86 = 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_04c1a83205d2a33d25e9d507b6277a86, codeobj_04c1a83205d2a33d25e9d507b6277a86, module_telegram$utils$helpers, sizeof(void *) ); frame_04c1a83205d2a33d25e9d507b6277a86 = cache_frame_04c1a83205d2a33d25e9d507b6277a86; // Push the new frame as the currently active one. pushFrameStack( frame_04c1a83205d2a33d25e9d507b6277a86 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_04c1a83205d2a33d25e9d507b6277a86 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_called_instance_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_mktime ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_mktime ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "mktime" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 48; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; CHECK_OBJECT( par_dt_obj ); tmp_called_instance_1 = par_dt_obj; frame_04c1a83205d2a33d25e9d507b6277a86->m_frame.f_lineno = 48; tmp_args_element_name_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_timetuple ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 48; type_description_1 = "o"; goto frame_exception_exit_1; } frame_04c1a83205d2a33d25e9d507b6277a86->m_frame.f_lineno = 48; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_args_element_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 48; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_04c1a83205d2a33d25e9d507b6277a86 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_04c1a83205d2a33d25e9d507b6277a86 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_04c1a83205d2a33d25e9d507b6277a86 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_04c1a83205d2a33d25e9d507b6277a86, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_04c1a83205d2a33d25e9d507b6277a86->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_04c1a83205d2a33d25e9d507b6277a86, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_04c1a83205d2a33d25e9d507b6277a86, type_description_1, par_dt_obj ); // Release cached frame. if ( frame_04c1a83205d2a33d25e9d507b6277a86 == cache_frame_04c1a83205d2a33d25e9d507b6277a86 ) { Py_DECREF( frame_04c1a83205d2a33d25e9d507b6277a86 ); } cache_frame_04c1a83205d2a33d25e9d507b6277a86 = NULL; assertFrameObject( frame_04c1a83205d2a33d25e9d507b6277a86 ); // 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( telegram$utils$helpers$$$function_3__timestamp ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_dt_obj ); par_dt_obj = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_dt_obj ); par_dt_obj = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( telegram$utils$helpers$$$function_3__timestamp ); 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_telegram$utils$helpers$$$function_4_escape_markdown( 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_text = python_pars[ 0 ]; PyObject *var_escape_chars = NULL; struct Nuitka_FrameObject *frame_ed4929960a4ed09709e49add9f69118e; 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_ed4929960a4ed09709e49add9f69118e = 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. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = const_str_digest_b19da6ff8a987c5b3652bb10ab70cadc; assert( var_escape_chars == NULL ); Py_INCREF( tmp_assign_source_1 ); var_escape_chars = tmp_assign_source_1; } { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_ed4929960a4ed09709e49add9f69118e, codeobj_ed4929960a4ed09709e49add9f69118e, module_telegram$utils$helpers, sizeof(void *)+sizeof(void *) ); frame_ed4929960a4ed09709e49add9f69118e = cache_frame_ed4929960a4ed09709e49add9f69118e; // Push the new frame as the currently active one. pushFrameStack( frame_ed4929960a4ed09709e49add9f69118e ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_ed4929960a4ed09709e49add9f69118e ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; PyObject *tmp_left_name_1; PyObject *tmp_right_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_args_element_name_3; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_re ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_re ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "re" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 54; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_source_name_1 = tmp_mvar_value_1; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_sub ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 54; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_left_name_1 = const_str_digest_35e5e1aea146155034e4a8ae91f2fe50; if ( var_escape_chars == 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", "escape_chars" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 54; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_right_name_1 = var_escape_chars; tmp_args_element_name_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_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 = 54; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_args_element_name_2 = const_str_digest_2fe71b40974e92f7a4ed2043bfd21fa9; if ( par_text == NULL ) { Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "text" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 54; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_args_element_name_3 = par_text; frame_ed4929960a4ed09709e49add9f69118e->m_frame.f_lineno = 54; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2, tmp_args_element_name_3 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 54; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_ed4929960a4ed09709e49add9f69118e ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_ed4929960a4ed09709e49add9f69118e ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_ed4929960a4ed09709e49add9f69118e ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_ed4929960a4ed09709e49add9f69118e, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_ed4929960a4ed09709e49add9f69118e->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_ed4929960a4ed09709e49add9f69118e, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_ed4929960a4ed09709e49add9f69118e, type_description_1, par_text, var_escape_chars ); // Release cached frame. if ( frame_ed4929960a4ed09709e49add9f69118e == cache_frame_ed4929960a4ed09709e49add9f69118e ) { Py_DECREF( frame_ed4929960a4ed09709e49add9f69118e ); } cache_frame_ed4929960a4ed09709e49add9f69118e = NULL; assertFrameObject( frame_ed4929960a4ed09709e49add9f69118e ); // 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( telegram$utils$helpers$$$function_4_escape_markdown ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_text ); par_text = NULL; } { Py_XDECREF( var_escape_chars ); var_escape_chars = 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_text ); par_text = NULL; } { Py_XDECREF( var_escape_chars ); var_escape_chars = 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( telegram$utils$helpers$$$function_4_escape_markdown ); 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_telegram$utils$helpers$$$function_5_to_timestamp( 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_dt_obj = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_2730bf337ed9228ba02fabe8910dead4; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; int tmp_res; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_2730bf337ed9228ba02fabe8910dead4 = 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_2730bf337ed9228ba02fabe8910dead4, codeobj_2730bf337ed9228ba02fabe8910dead4, module_telegram$utils$helpers, sizeof(void *) ); frame_2730bf337ed9228ba02fabe8910dead4 = cache_frame_2730bf337ed9228ba02fabe8910dead4; // Push the new frame as the currently active one. pushFrameStack( frame_2730bf337ed9228ba02fabe8910dead4 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_2730bf337ed9228ba02fabe8910dead4 ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_operand_name_1; CHECK_OBJECT( par_dt_obj ); tmp_operand_name_1 = par_dt_obj; 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 = 66; 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:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto frame_return_exit_1; } branch_no_1:; } { PyObject *tmp_int_arg_1; PyObject *tmp_called_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain__timestamp ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain__timestamp ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "_timestamp" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 69; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_called_name_1 = tmp_mvar_value_1; if ( par_dt_obj == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "dt_obj" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 69; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_dt_obj; frame_2730bf337ed9228ba02fabe8910dead4->m_frame.f_lineno = 69; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_int_arg_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } if ( tmp_int_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 69; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_return_value = PyNumber_Int( tmp_int_arg_1 ); Py_DECREF( tmp_int_arg_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 69; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_2730bf337ed9228ba02fabe8910dead4 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_2730bf337ed9228ba02fabe8910dead4 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_2730bf337ed9228ba02fabe8910dead4 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_2730bf337ed9228ba02fabe8910dead4, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_2730bf337ed9228ba02fabe8910dead4->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_2730bf337ed9228ba02fabe8910dead4, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_2730bf337ed9228ba02fabe8910dead4, type_description_1, par_dt_obj ); // Release cached frame. if ( frame_2730bf337ed9228ba02fabe8910dead4 == cache_frame_2730bf337ed9228ba02fabe8910dead4 ) { Py_DECREF( frame_2730bf337ed9228ba02fabe8910dead4 ); } cache_frame_2730bf337ed9228ba02fabe8910dead4 = NULL; assertFrameObject( frame_2730bf337ed9228ba02fabe8910dead4 ); // 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( telegram$utils$helpers$$$function_5_to_timestamp ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_dt_obj ); par_dt_obj = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_dt_obj ); par_dt_obj = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( telegram$utils$helpers$$$function_5_to_timestamp ); 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_telegram$utils$helpers$$$function_6_from_timestamp( 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_unixtime = python_pars[ 0 ]; struct Nuitka_FrameObject *frame_8dcd5fc2b9943781eb4b16056a9a5351; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; int tmp_res; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_8dcd5fc2b9943781eb4b16056a9a5351 = 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_8dcd5fc2b9943781eb4b16056a9a5351, codeobj_8dcd5fc2b9943781eb4b16056a9a5351, module_telegram$utils$helpers, sizeof(void *) ); frame_8dcd5fc2b9943781eb4b16056a9a5351 = cache_frame_8dcd5fc2b9943781eb4b16056a9a5351; // Push the new frame as the currently active one. pushFrameStack( frame_8dcd5fc2b9943781eb4b16056a9a5351 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_8dcd5fc2b9943781eb4b16056a9a5351 ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_operand_name_1; CHECK_OBJECT( par_unixtime ); tmp_operand_name_1 = par_unixtime; 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 = 81; 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:; { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto frame_return_exit_1; } branch_no_1:; } { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_1; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_datetime ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_datetime ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "datetime" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 84; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_source_name_1 = tmp_mvar_value_1; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_fromtimestamp ); if ( tmp_called_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 84; type_description_1 = "o"; goto frame_exception_exit_1; } if ( par_unixtime == 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", "unixtime" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 84; type_description_1 = "o"; goto frame_exception_exit_1; } tmp_args_element_name_1 = par_unixtime; frame_8dcd5fc2b9943781eb4b16056a9a5351->m_frame.f_lineno = 84; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 84; type_description_1 = "o"; goto frame_exception_exit_1; } goto frame_return_exit_1; } #if 0 RESTORE_FRAME_EXCEPTION( frame_8dcd5fc2b9943781eb4b16056a9a5351 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_8dcd5fc2b9943781eb4b16056a9a5351 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_8dcd5fc2b9943781eb4b16056a9a5351 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_8dcd5fc2b9943781eb4b16056a9a5351, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_8dcd5fc2b9943781eb4b16056a9a5351->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_8dcd5fc2b9943781eb4b16056a9a5351, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_8dcd5fc2b9943781eb4b16056a9a5351, type_description_1, par_unixtime ); // Release cached frame. if ( frame_8dcd5fc2b9943781eb4b16056a9a5351 == cache_frame_8dcd5fc2b9943781eb4b16056a9a5351 ) { Py_DECREF( frame_8dcd5fc2b9943781eb4b16056a9a5351 ); } cache_frame_8dcd5fc2b9943781eb4b16056a9a5351 = NULL; assertFrameObject( frame_8dcd5fc2b9943781eb4b16056a9a5351 ); // 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( telegram$utils$helpers$$$function_6_from_timestamp ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_unixtime ); par_unixtime = 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_unixtime ); par_unixtime = 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( telegram$utils$helpers$$$function_6_from_timestamp ); 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_telegram$utils$helpers$$$function_7_mention_html( 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_user_id = python_pars[ 0 ]; PyObject *par_name = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_f868984cfdd2bc13b2d97225b7629b0f; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; int tmp_res; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_f868984cfdd2bc13b2d97225b7629b0f = 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_f868984cfdd2bc13b2d97225b7629b0f, codeobj_f868984cfdd2bc13b2d97225b7629b0f, module_telegram$utils$helpers, sizeof(void *)+sizeof(void *) ); frame_f868984cfdd2bc13b2d97225b7629b0f = cache_frame_f868984cfdd2bc13b2d97225b7629b0f; // Push the new frame as the currently active one. pushFrameStack( frame_f868984cfdd2bc13b2d97225b7629b0f ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_f868984cfdd2bc13b2d97225b7629b0f ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; CHECK_OBJECT( par_user_id ); tmp_isinstance_inst_1 = par_user_id; tmp_isinstance_cls_1 = (PyObject *)&PyLong_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 96; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_args_element_name_2; PyObject *tmp_called_name_2; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_3; tmp_source_name_1 = const_str_digest_f7bb88bd3f45ab25e429964235434758; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_format ); assert( !(tmp_called_name_1 == NULL) ); CHECK_OBJECT( par_user_id ); tmp_args_element_name_1 = par_user_id; tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_escape ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_escape ); } if ( tmp_mvar_value_1 == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "escape" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 97; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_called_name_2 = tmp_mvar_value_1; CHECK_OBJECT( par_name ); tmp_args_element_name_3 = par_name; frame_f868984cfdd2bc13b2d97225b7629b0f->m_frame.f_lineno = 97; { PyObject *call_args[] = { tmp_args_element_name_3 }; tmp_args_element_name_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_called_name_1 ); exception_lineno = 97; type_description_1 = "oo"; goto frame_exception_exit_1; } frame_f868984cfdd2bc13b2d97225b7629b0f->m_frame.f_lineno = 97; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_2 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_2 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 97; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } branch_no_1:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_f868984cfdd2bc13b2d97225b7629b0f ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_f868984cfdd2bc13b2d97225b7629b0f ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_f868984cfdd2bc13b2d97225b7629b0f ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_f868984cfdd2bc13b2d97225b7629b0f, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_f868984cfdd2bc13b2d97225b7629b0f->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_f868984cfdd2bc13b2d97225b7629b0f, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_f868984cfdd2bc13b2d97225b7629b0f, type_description_1, par_user_id, par_name ); // Release cached frame. if ( frame_f868984cfdd2bc13b2d97225b7629b0f == cache_frame_f868984cfdd2bc13b2d97225b7629b0f ) { Py_DECREF( frame_f868984cfdd2bc13b2d97225b7629b0f ); } cache_frame_f868984cfdd2bc13b2d97225b7629b0f = NULL; assertFrameObject( frame_f868984cfdd2bc13b2d97225b7629b0f ); // 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( telegram$utils$helpers$$$function_7_mention_html ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_user_id ); par_user_id = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_user_id ); par_user_id = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( telegram$utils$helpers$$$function_7_mention_html ); 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_telegram$utils$helpers$$$function_8_mention_markdown( 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_user_id = python_pars[ 0 ]; PyObject *par_name = python_pars[ 1 ]; struct Nuitka_FrameObject *frame_37b3a6dddee4d4c382f11d61ac1e345e; NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL; int tmp_res; PyObject *exception_type = NULL; PyObject *exception_value = NULL; PyTracebackObject *exception_tb = NULL; NUITKA_MAY_BE_UNUSED int exception_lineno = 0; PyObject *tmp_return_value = NULL; static struct Nuitka_FrameObject *cache_frame_37b3a6dddee4d4c382f11d61ac1e345e = 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_37b3a6dddee4d4c382f11d61ac1e345e, codeobj_37b3a6dddee4d4c382f11d61ac1e345e, module_telegram$utils$helpers, sizeof(void *)+sizeof(void *) ); frame_37b3a6dddee4d4c382f11d61ac1e345e = cache_frame_37b3a6dddee4d4c382f11d61ac1e345e; // Push the new frame as the currently active one. pushFrameStack( frame_37b3a6dddee4d4c382f11d61ac1e345e ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_37b3a6dddee4d4c382f11d61ac1e345e ) == 2 ); // Frame stack // Framed code: { nuitka_bool tmp_condition_result_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; CHECK_OBJECT( par_user_id ); tmp_isinstance_inst_1 = par_user_id; tmp_isinstance_cls_1 = (PyObject *)&PyLong_Type; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 109; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_called_name_1; PyObject *tmp_source_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_called_name_2; PyObject *tmp_mvar_value_1; PyObject *tmp_args_element_name_2; PyObject *tmp_args_element_name_3; tmp_source_name_1 = const_str_digest_a063deb96efd03a85cbf7d072d36a610; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_format ); assert( !(tmp_called_name_1 == NULL) ); tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_escape_markdown ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_escape_markdown ); } if ( tmp_mvar_value_1 == NULL ) { Py_DECREF( tmp_called_name_1 ); exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "escape_markdown" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 110; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_called_name_2 = tmp_mvar_value_1; CHECK_OBJECT( par_name ); tmp_args_element_name_2 = par_name; frame_37b3a6dddee4d4c382f11d61ac1e345e->m_frame.f_lineno = 110; { PyObject *call_args[] = { tmp_args_element_name_2 }; tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } 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 = 110; type_description_1 = "oo"; goto frame_exception_exit_1; } if ( par_user_id == NULL ) { Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "user_id" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 110; type_description_1 = "oo"; goto frame_exception_exit_1; } tmp_args_element_name_3 = par_user_id; frame_37b3a6dddee4d4c382f11d61ac1e345e->m_frame.f_lineno = 110; { PyObject *call_args[] = { tmp_args_element_name_1, tmp_args_element_name_3 }; tmp_return_value = CALL_FUNCTION_WITH_ARGS2( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); if ( tmp_return_value == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 110; type_description_1 = "oo"; goto frame_exception_exit_1; } goto frame_return_exit_1; } branch_no_1:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_37b3a6dddee4d4c382f11d61ac1e345e ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_37b3a6dddee4d4c382f11d61ac1e345e ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_37b3a6dddee4d4c382f11d61ac1e345e ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_37b3a6dddee4d4c382f11d61ac1e345e, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_37b3a6dddee4d4c382f11d61ac1e345e->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_37b3a6dddee4d4c382f11d61ac1e345e, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_37b3a6dddee4d4c382f11d61ac1e345e, type_description_1, par_user_id, par_name ); // Release cached frame. if ( frame_37b3a6dddee4d4c382f11d61ac1e345e == cache_frame_37b3a6dddee4d4c382f11d61ac1e345e ) { Py_DECREF( frame_37b3a6dddee4d4c382f11d61ac1e345e ); } cache_frame_37b3a6dddee4d4c382f11d61ac1e345e = NULL; assertFrameObject( frame_37b3a6dddee4d4c382f11d61ac1e345e ); // 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( telegram$utils$helpers$$$function_8_mention_markdown ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_user_id ); par_user_id = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_user_id ); par_user_id = NULL; } { Py_XDECREF( par_name ); par_name = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( telegram$utils$helpers$$$function_8_mention_markdown ); 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_telegram$utils$helpers$$$function_9_effective_message_type( 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_entity = python_pars[ 0 ]; PyObject *var_Message = NULL; PyObject *var_Update = NULL; PyObject *var_message = NULL; PyObject *var_i = NULL; PyObject *tmp_for_loop_1__for_iterator = NULL; PyObject *tmp_for_loop_1__iter_value = NULL; struct Nuitka_FrameObject *frame_12527d293b8524e1a2fbe0f47050eaf2; 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; PyObject *exception_keeper_type_1; PyObject *exception_keeper_value_1; PyTracebackObject *exception_keeper_tb_1; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1; static struct Nuitka_FrameObject *cache_frame_12527d293b8524e1a2fbe0f47050eaf2 = NULL; PyObject *exception_keeper_type_2; PyObject *exception_keeper_value_2; PyTracebackObject *exception_keeper_tb_2; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2; // Actual function code. { // Tried code: MAKE_OR_REUSE_FRAME( cache_frame_12527d293b8524e1a2fbe0f47050eaf2, codeobj_12527d293b8524e1a2fbe0f47050eaf2, module_telegram$utils$helpers, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) ); frame_12527d293b8524e1a2fbe0f47050eaf2 = cache_frame_12527d293b8524e1a2fbe0f47050eaf2; // Push the new frame as the currently active one. pushFrameStack( frame_12527d293b8524e1a2fbe0f47050eaf2 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_12527d293b8524e1a2fbe0f47050eaf2 ) == 2 ); // Frame stack // Framed code: { PyObject *tmp_assign_source_1; PyObject *tmp_import_name_from_1; PyObject *tmp_name_name_1; PyObject *tmp_globals_name_1; PyObject *tmp_locals_name_1; PyObject *tmp_fromlist_name_1; PyObject *tmp_level_name_1; tmp_name_name_1 = const_str_plain_telegram; tmp_globals_name_1 = (PyObject *)moduledict_telegram$utils$helpers; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = const_tuple_str_plain_Message_tuple; tmp_level_name_1 = const_int_0; frame_12527d293b8524e1a2fbe0f47050eaf2->m_frame.f_lineno = 127; tmp_import_name_from_1 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 ); if ( tmp_import_name_from_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 127; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_assign_source_1 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_Message ); Py_DECREF( tmp_import_name_from_1 ); if ( tmp_assign_source_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 127; type_description_1 = "ooooo"; goto frame_exception_exit_1; } assert( var_Message == NULL ); var_Message = tmp_assign_source_1; } { PyObject *tmp_assign_source_2; PyObject *tmp_import_name_from_2; PyObject *tmp_name_name_2; PyObject *tmp_globals_name_2; PyObject *tmp_locals_name_2; PyObject *tmp_fromlist_name_2; PyObject *tmp_level_name_2; tmp_name_name_2 = const_str_plain_telegram; tmp_globals_name_2 = (PyObject *)moduledict_telegram$utils$helpers; tmp_locals_name_2 = Py_None; tmp_fromlist_name_2 = const_tuple_str_plain_Update_tuple; tmp_level_name_2 = const_int_0; frame_12527d293b8524e1a2fbe0f47050eaf2->m_frame.f_lineno = 128; tmp_import_name_from_2 = IMPORT_MODULE5( tmp_name_name_2, tmp_globals_name_2, tmp_locals_name_2, tmp_fromlist_name_2, tmp_level_name_2 ); if ( tmp_import_name_from_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 128; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_assign_source_2 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_Update ); Py_DECREF( tmp_import_name_from_2 ); if ( tmp_assign_source_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 128; type_description_1 = "ooooo"; goto frame_exception_exit_1; } assert( var_Update == NULL ); var_Update = tmp_assign_source_2; } { nuitka_bool tmp_condition_result_1; PyObject *tmp_isinstance_inst_1; PyObject *tmp_isinstance_cls_1; if ( par_entity == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "entity" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 130; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_isinstance_inst_1 = par_entity; if ( var_Message == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "Message" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 130; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_isinstance_cls_1 = var_Message; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_1, tmp_isinstance_cls_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 130; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { PyObject *tmp_assign_source_3; if ( par_entity == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "entity" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 131; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_assign_source_3 = par_entity; assert( var_message == NULL ); Py_INCREF( tmp_assign_source_3 ); var_message = tmp_assign_source_3; } goto branch_end_1; branch_no_1:; { nuitka_bool tmp_condition_result_2; PyObject *tmp_isinstance_inst_2; PyObject *tmp_isinstance_cls_2; if ( par_entity == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "entity" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 132; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_isinstance_inst_2 = par_entity; CHECK_OBJECT( var_Update ); tmp_isinstance_cls_2 = var_Update; tmp_res = Nuitka_IsInstance( tmp_isinstance_inst_2, tmp_isinstance_cls_2 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 132; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_assign_source_4; PyObject *tmp_source_name_1; if ( par_entity == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "entity" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 133; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_source_name_1 = par_entity; tmp_assign_source_4 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_effective_message ); if ( tmp_assign_source_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 133; type_description_1 = "ooooo"; goto frame_exception_exit_1; } assert( var_message == NULL ); var_message = tmp_assign_source_4; } goto branch_end_2; branch_no_2:; { PyObject *tmp_raise_type_1; PyObject *tmp_make_exception_arg_1; PyObject *tmp_called_name_1; PyObject *tmp_source_name_2; PyObject *tmp_args_element_name_1; PyObject *tmp_type_arg_1; tmp_source_name_2 = const_str_digest_8e8417bf2d16d166cfd486d02da6f05e; tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_format ); assert( !(tmp_called_name_1 == NULL) ); if ( par_entity == 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", "entity" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 135; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_type_arg_1 = par_entity; tmp_args_element_name_1 = BUILTIN_TYPE1( tmp_type_arg_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 = 135; type_description_1 = "ooooo"; goto frame_exception_exit_1; } frame_12527d293b8524e1a2fbe0f47050eaf2->m_frame.f_lineno = 135; { PyObject *call_args[] = { tmp_args_element_name_1 }; tmp_make_exception_arg_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args ); } Py_DECREF( tmp_called_name_1 ); Py_DECREF( tmp_args_element_name_1 ); if ( tmp_make_exception_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 135; type_description_1 = "ooooo"; goto frame_exception_exit_1; } frame_12527d293b8524e1a2fbe0f47050eaf2->m_frame.f_lineno = 135; { PyObject *call_args[] = { tmp_make_exception_arg_1 }; tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( PyExc_TypeError, call_args ); } Py_DECREF( tmp_make_exception_arg_1 ); assert( !(tmp_raise_type_1 == NULL) ); exception_type = tmp_raise_type_1; exception_lineno = 135; RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooo"; goto frame_exception_exit_1; } branch_end_2:; } branch_end_1:; } { PyObject *tmp_assign_source_5; PyObject *tmp_iter_arg_1; PyObject *tmp_source_name_3; if ( var_Message == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "Message" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 137; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_source_name_3 = var_Message; tmp_iter_arg_1 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_MESSAGE_TYPES ); if ( tmp_iter_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 137; type_description_1 = "ooooo"; goto frame_exception_exit_1; } tmp_assign_source_5 = MAKE_ITERATOR( tmp_iter_arg_1 ); Py_DECREF( tmp_iter_arg_1 ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 137; type_description_1 = "ooooo"; goto frame_exception_exit_1; } assert( tmp_for_loop_1__for_iterator == NULL ); tmp_for_loop_1__for_iterator = tmp_assign_source_5; } { // Tried code: { loop_start_1:; { PyObject *tmp_next_source_1; PyObject *tmp_assign_source_6; CHECK_OBJECT( tmp_for_loop_1__for_iterator ); tmp_next_source_1 = tmp_for_loop_1__for_iterator; tmp_assign_source_6 = ITERATOR_NEXT( tmp_next_source_1 ); if ( tmp_assign_source_6 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_1; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_1 = "ooooo"; exception_lineno = 137; goto try_except_handler_2; } } { PyObject *old = tmp_for_loop_1__iter_value; tmp_for_loop_1__iter_value = tmp_assign_source_6; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_7; CHECK_OBJECT( tmp_for_loop_1__iter_value ); tmp_assign_source_7 = tmp_for_loop_1__iter_value; { PyObject *old = var_i; var_i = tmp_assign_source_7; Py_INCREF( var_i ); Py_XDECREF( old ); } } { nuitka_bool tmp_condition_result_3; PyObject *tmp_getattr_target_1; PyObject *tmp_getattr_attr_1; PyObject *tmp_getattr_default_1; PyObject *tmp_capi_result_1; int tmp_truth_name_1; if ( var_message == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "message" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 138; type_description_1 = "ooooo"; goto try_except_handler_2; } tmp_getattr_target_1 = var_message; CHECK_OBJECT( var_i ); tmp_getattr_attr_1 = var_i; tmp_getattr_default_1 = Py_None; tmp_capi_result_1 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 ); if ( tmp_capi_result_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 138; type_description_1 = "ooooo"; goto try_except_handler_2; } tmp_truth_name_1 = CHECK_IF_TRUE( tmp_capi_result_1 ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_capi_result_1 ); exception_lineno = 138; type_description_1 = "ooooo"; goto try_except_handler_2; } tmp_condition_result_3 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_capi_result_1 ); if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE ) { goto branch_yes_3; } else { goto branch_no_3; } branch_yes_3:; { CHECK_OBJECT( var_i ); tmp_return_value = var_i; Py_INCREF( tmp_return_value ); goto try_return_handler_2; } branch_no_3:; } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 137; type_description_1 = "ooooo"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; } goto try_end_1; // Return handler code: try_return_handler_2:; { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__iter_value ); Py_DECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { goto frame_return_exit_1; } // Exception handler code: try_except_handler_2:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto frame_exception_exit_1; } // End of try: try_end_1:; } #if 0 RESTORE_FRAME_EXCEPTION( frame_12527d293b8524e1a2fbe0f47050eaf2 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_12527d293b8524e1a2fbe0f47050eaf2 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_12527d293b8524e1a2fbe0f47050eaf2 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_12527d293b8524e1a2fbe0f47050eaf2, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_12527d293b8524e1a2fbe0f47050eaf2->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_12527d293b8524e1a2fbe0f47050eaf2, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_12527d293b8524e1a2fbe0f47050eaf2, type_description_1, par_entity, var_Message, var_Update, var_message, var_i ); // Release cached frame. if ( frame_12527d293b8524e1a2fbe0f47050eaf2 == cache_frame_12527d293b8524e1a2fbe0f47050eaf2 ) { Py_DECREF( frame_12527d293b8524e1a2fbe0f47050eaf2 ); } cache_frame_12527d293b8524e1a2fbe0f47050eaf2 = NULL; assertFrameObject( frame_12527d293b8524e1a2fbe0f47050eaf2 ); // Put the previous frame back on top. popFrameStack(); // Return the error. goto try_except_handler_1; frame_no_exception_1:; { Py_XDECREF( tmp_for_loop_1__iter_value ); tmp_for_loop_1__iter_value = NULL; } { CHECK_OBJECT( (PyObject *)tmp_for_loop_1__for_iterator ); Py_DECREF( tmp_for_loop_1__for_iterator ); tmp_for_loop_1__for_iterator = NULL; } { tmp_return_value = Py_None; Py_INCREF( tmp_return_value ); goto try_return_handler_1; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( telegram$utils$helpers$$$function_9_effective_message_type ); return NULL; // Return handler code: try_return_handler_1:; { Py_XDECREF( par_entity ); par_entity = NULL; } { Py_XDECREF( var_Message ); var_Message = NULL; } { Py_XDECREF( var_Update ); var_Update = NULL; } { Py_XDECREF( var_message ); var_message = NULL; } { Py_XDECREF( var_i ); var_i = NULL; } { goto function_return_exit; } // Exception handler code: try_except_handler_1:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( par_entity ); par_entity = NULL; } { Py_XDECREF( var_Message ); var_Message = NULL; } { Py_XDECREF( var_Update ); var_Update = NULL; } { Py_XDECREF( var_message ); var_message = NULL; } { Py_XDECREF( var_i ); var_i = NULL; } { // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto function_exception_exit; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( telegram$utils$helpers$$$function_9_effective_message_type ); 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_telegram$utils$helpers$$$function_1_get_signal_name( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_telegram$utils$helpers$$$function_1_get_signal_name, const_str_plain_get_signal_name, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_6c69ae4dfb55f7892fe96d19d8da3d80, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_telegram$utils$helpers, const_str_digest_e6664e69a9d3de5b1ec4efa99180a2c8, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_2__timestamp( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_telegram$utils$helpers$$$function_2__timestamp, const_str_plain__timestamp, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_b7adb4b29525bdf66ec26ac67ca9ed5a, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_telegram$utils$helpers, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_3__timestamp( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_telegram$utils$helpers$$$function_3__timestamp, const_str_plain__timestamp, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_04c1a83205d2a33d25e9d507b6277a86, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_telegram$utils$helpers, NULL, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_4_escape_markdown( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_telegram$utils$helpers$$$function_4_escape_markdown, const_str_plain_escape_markdown, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_ed4929960a4ed09709e49add9f69118e, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_telegram$utils$helpers, const_str_digest_04d9e98bcb1439b9189d31efc5460cee, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_5_to_timestamp( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_telegram$utils$helpers$$$function_5_to_timestamp, const_str_plain_to_timestamp, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_2730bf337ed9228ba02fabe8910dead4, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_telegram$utils$helpers, const_str_digest_001e7e5b1cb6c309534a430f123736ae, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_6_from_timestamp( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_telegram$utils$helpers$$$function_6_from_timestamp, const_str_plain_from_timestamp, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_8dcd5fc2b9943781eb4b16056a9a5351, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_telegram$utils$helpers, const_str_digest_75d5f84901235cc0d1d1b5ff3236b572, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_7_mention_html( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_telegram$utils$helpers$$$function_7_mention_html, const_str_plain_mention_html, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_f868984cfdd2bc13b2d97225b7629b0f, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_telegram$utils$helpers, const_str_digest_2cbe2b337dee2e8b051e197b4a9b749f, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_8_mention_markdown( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_telegram$utils$helpers$$$function_8_mention_markdown, const_str_plain_mention_markdown, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_37b3a6dddee4d4c382f11d61ac1e345e, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_telegram$utils$helpers, const_str_digest_965457f88af4f27ec2bcbc788b862139, 0 ); return (PyObject *)result; } static PyObject *MAKE_FUNCTION_telegram$utils$helpers$$$function_9_effective_message_type( ) { struct Nuitka_FunctionObject *result = Nuitka_Function_New( impl_telegram$utils$helpers$$$function_9_effective_message_type, const_str_plain_effective_message_type, #if PYTHON_VERSION >= 300 NULL, #endif codeobj_12527d293b8524e1a2fbe0f47050eaf2, NULL, #if PYTHON_VERSION >= 300 NULL, NULL, #endif module_telegram$utils$helpers, const_str_digest_77938f8c93241f9cf015a87058daca9d, 0 ); return (PyObject *)result; } #if PYTHON_VERSION >= 300 static struct PyModuleDef mdef_telegram$utils$helpers = { PyModuleDef_HEAD_INIT, "telegram.utils.helpers", /* 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( telegram$utils$helpers ) { #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_telegram$utils$helpers ); } 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("telegram.utils.helpers: 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("telegram.utils.helpers: Calling createModuleConstants()."); #endif createModuleConstants(); /* The code objects used by this module are created now. */ #ifdef _NUITKA_TRACE puts("telegram.utils.helpers: Calling createModuleCodeObjects()."); #endif createModuleCodeObjects(); // puts( "in inittelegram$utils$helpers" ); // 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_telegram$utils$helpers = Py_InitModule4( "telegram.utils.helpers", // 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_telegram$utils$helpers = PyModule_Create( &mdef_telegram$utils$helpers ); #endif moduledict_telegram$utils$helpers = MODULE_DICT( module_telegram$utils$helpers ); // Update "__package__" value to what it ought to be. { #if 0 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain___name__ ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain___package__, module_name ); #else #if PYTHON_VERSION < 300 PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (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_telegram$utils$helpers, (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_telegram$utils$helpers, (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_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain___package__, PyUnicode_Substring( module_name, 0, dot_index ) ); } #endif #endif } CHECK_OBJECT( module_telegram$utils$helpers ); // 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_ced73610be43e5643f84cde54164dc35, module_telegram$utils$helpers ); 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_telegram$utils$helpers, (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_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain___builtins__, value ); } #if PYTHON_VERSION >= 300 UPDATE_STRING_DICT0( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader ); #endif #if PYTHON_VERSION >= 340 #if 0 UPDATE_STRING_DICT0( moduledict_telegram$utils$helpers, (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_telegram$utils$helpers, (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_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain___spec__, spec_value ); Py_DECREF( module_spec_class ); } #endif #endif // Temp variables if any PyObject *outline_0_var_k = NULL; PyObject *outline_0_var_v = NULL; PyObject *tmp_dictcontraction$tuple_unpack_1__element_1 = NULL; PyObject *tmp_dictcontraction$tuple_unpack_1__element_2 = NULL; PyObject *tmp_dictcontraction$tuple_unpack_1__source_iter = NULL; PyObject *tmp_dictcontraction_1__$0 = NULL; PyObject *tmp_dictcontraction_1__contraction = NULL; PyObject *tmp_dictcontraction_1__iter_value_0 = NULL; struct Nuitka_FrameObject *frame_0dcf9d78146ba062ee2950110da0d316; 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; struct Nuitka_FrameObject *frame_4a352ecbe272e0d43d75941a52723f69_2; NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL; 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; int tmp_res; PyObject *tmp_dictset_value; PyObject *tmp_dictset_dict; PyObject *tmp_dictset_key; PyObject *exception_keeper_type_3; PyObject *exception_keeper_value_3; PyTracebackObject *exception_keeper_tb_3; NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3; static struct Nuitka_FrameObject *cache_frame_4a352ecbe272e0d43d75941a52723f69_2 = 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; // Module code. { PyObject *tmp_assign_source_1; tmp_assign_source_1 = const_str_digest_74268e32775dc5db6b09a9ae94d6b36c; UPDATE_STRING_DICT0( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 ); } { PyObject *tmp_assign_source_2; tmp_assign_source_2 = const_str_digest_81a3f1c5f5a5a5df4edd190ac8eabffc; UPDATE_STRING_DICT0( moduledict_telegram$utils$helpers, (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_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 ); } // Frame without reuse. frame_0dcf9d78146ba062ee2950110da0d316 = MAKE_MODULE_FRAME( codeobj_0dcf9d78146ba062ee2950110da0d316, module_telegram$utils$helpers ); // Push the new frame as the currently active one, and we should be exclusively // owning it. pushFrameStack( frame_0dcf9d78146ba062ee2950110da0d316 ); assert( Py_REFCNT( frame_0dcf9d78146ba062ee2950110da0d316 ) == 2 ); // Framed code: { PyObject *tmp_assign_source_4; PyObject *tmp_import_name_from_1; PyObject *tmp_name_name_1; PyObject *tmp_globals_name_1; PyObject *tmp_locals_name_1; PyObject *tmp_fromlist_name_1; PyObject *tmp_level_name_1; tmp_name_name_1 = const_str_plain_html; tmp_globals_name_1 = (PyObject *)moduledict_telegram$utils$helpers; tmp_locals_name_1 = Py_None; tmp_fromlist_name_1 = const_tuple_str_plain_escape_tuple; tmp_level_name_1 = const_int_0; frame_0dcf9d78146ba062ee2950110da0d316->m_frame.f_lineno = 20; tmp_import_name_from_1 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 ); if ( tmp_import_name_from_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 20; goto frame_exception_exit_1; } tmp_assign_source_4 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_escape ); Py_DECREF( tmp_import_name_from_1 ); if ( tmp_assign_source_4 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 20; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_escape, tmp_assign_source_4 ); } { PyObject *tmp_assign_source_5; PyObject *tmp_name_name_2; PyObject *tmp_globals_name_2; PyObject *tmp_locals_name_2; PyObject *tmp_fromlist_name_2; PyObject *tmp_level_name_2; tmp_name_name_2 = const_str_plain_re; tmp_globals_name_2 = (PyObject *)moduledict_telegram$utils$helpers; tmp_locals_name_2 = Py_None; tmp_fromlist_name_2 = Py_None; tmp_level_name_2 = const_int_0; frame_0dcf9d78146ba062ee2950110da0d316->m_frame.f_lineno = 22; tmp_assign_source_5 = IMPORT_MODULE5( tmp_name_name_2, tmp_globals_name_2, tmp_locals_name_2, tmp_fromlist_name_2, tmp_level_name_2 ); if ( tmp_assign_source_5 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 22; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_re, tmp_assign_source_5 ); } { PyObject *tmp_assign_source_6; PyObject *tmp_name_name_3; PyObject *tmp_globals_name_3; PyObject *tmp_locals_name_3; PyObject *tmp_fromlist_name_3; PyObject *tmp_level_name_3; tmp_name_name_3 = const_str_plain_signal; tmp_globals_name_3 = (PyObject *)moduledict_telegram$utils$helpers; tmp_locals_name_3 = Py_None; tmp_fromlist_name_3 = Py_None; tmp_level_name_3 = const_int_0; frame_0dcf9d78146ba062ee2950110da0d316->m_frame.f_lineno = 23; tmp_assign_source_6 = IMPORT_MODULE5( tmp_name_name_3, tmp_globals_name_3, tmp_locals_name_3, tmp_fromlist_name_3, tmp_level_name_3 ); if ( tmp_assign_source_6 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 23; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_signal, tmp_assign_source_6 ); } { PyObject *tmp_assign_source_7; PyObject *tmp_import_name_from_2; PyObject *tmp_name_name_4; PyObject *tmp_globals_name_4; PyObject *tmp_locals_name_4; PyObject *tmp_fromlist_name_4; PyObject *tmp_level_name_4; tmp_name_name_4 = const_str_plain_datetime; tmp_globals_name_4 = (PyObject *)moduledict_telegram$utils$helpers; tmp_locals_name_4 = Py_None; tmp_fromlist_name_4 = const_tuple_str_plain_datetime_tuple; tmp_level_name_4 = const_int_0; frame_0dcf9d78146ba062ee2950110da0d316->m_frame.f_lineno = 24; tmp_import_name_from_2 = IMPORT_MODULE5( tmp_name_name_4, tmp_globals_name_4, tmp_locals_name_4, tmp_fromlist_name_4, tmp_level_name_4 ); if ( tmp_import_name_from_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 24; goto frame_exception_exit_1; } tmp_assign_source_7 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_datetime ); Py_DECREF( tmp_import_name_from_2 ); if ( tmp_assign_source_7 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 24; goto frame_exception_exit_1; } UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_datetime, tmp_assign_source_7 ); } { PyObject *tmp_assign_source_8; { // Tried code: { PyObject *tmp_assign_source_9; PyObject *tmp_iter_arg_1; PyObject *tmp_called_name_1; PyObject *tmp_args_element_name_1; PyObject *tmp_called_name_2; PyObject *tmp_args_element_name_2; PyObject *tmp_called_instance_1; PyObject *tmp_vars_arg_1; PyObject *tmp_mvar_value_1; tmp_called_name_1 = (PyObject *)&PyReversed_Type; tmp_called_name_2 = LOOKUP_BUILTIN( const_str_plain_sorted ); assert( tmp_called_name_2 != NULL ); tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_signal ); if (unlikely( tmp_mvar_value_1 == NULL )) { tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_signal ); } if ( tmp_mvar_value_1 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "signal" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 28; goto try_except_handler_1; } tmp_vars_arg_1 = tmp_mvar_value_1; tmp_called_instance_1 = LOOKUP_VARS( tmp_vars_arg_1 ); if ( tmp_called_instance_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 28; goto try_except_handler_1; } frame_0dcf9d78146ba062ee2950110da0d316->m_frame.f_lineno = 28; tmp_args_element_name_2 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain_items ); Py_DECREF( tmp_called_instance_1 ); if ( tmp_args_element_name_2 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 28; goto try_except_handler_1; } frame_0dcf9d78146ba062ee2950110da0d316->m_frame.f_lineno = 28; { PyObject *call_args[] = { tmp_args_element_name_2 }; tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args ); } Py_DECREF( tmp_args_element_name_2 ); if ( tmp_args_element_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 28; goto try_except_handler_1; } frame_0dcf9d78146ba062ee2950110da0d316->m_frame.f_lineno = 28; { 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_args_element_name_1 ); if ( tmp_iter_arg_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 28; goto try_except_handler_1; } tmp_assign_source_9 = MAKE_ITERATOR( tmp_iter_arg_1 ); Py_DECREF( tmp_iter_arg_1 ); if ( tmp_assign_source_9 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 27; goto try_except_handler_1; } assert( tmp_dictcontraction_1__$0 == NULL ); tmp_dictcontraction_1__$0 = tmp_assign_source_9; } { PyObject *tmp_assign_source_10; tmp_assign_source_10 = PyDict_New(); assert( tmp_dictcontraction_1__contraction == NULL ); tmp_dictcontraction_1__contraction = tmp_assign_source_10; } MAKE_OR_REUSE_FRAME( cache_frame_4a352ecbe272e0d43d75941a52723f69_2, codeobj_4a352ecbe272e0d43d75941a52723f69, module_telegram$utils$helpers, sizeof(void *)+sizeof(void *) ); frame_4a352ecbe272e0d43d75941a52723f69_2 = cache_frame_4a352ecbe272e0d43d75941a52723f69_2; // Push the new frame as the currently active one. pushFrameStack( frame_4a352ecbe272e0d43d75941a52723f69_2 ); // Mark the frame object as in use, ref count 1 will be up for reuse. assert( Py_REFCNT( frame_4a352ecbe272e0d43d75941a52723f69_2 ) == 2 ); // Frame stack // Framed code: { // Tried code: { loop_start_1:; { PyObject *tmp_next_source_1; PyObject *tmp_assign_source_11; CHECK_OBJECT( tmp_dictcontraction_1__$0 ); tmp_next_source_1 = tmp_dictcontraction_1__$0; tmp_assign_source_11 = ITERATOR_NEXT( tmp_next_source_1 ); if ( tmp_assign_source_11 == NULL ) { if ( CHECK_AND_CLEAR_STOP_ITERATION_OCCURRED() ) { goto loop_end_1; } else { FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_2 = "oo"; exception_lineno = 27; goto try_except_handler_2; } } { PyObject *old = tmp_dictcontraction_1__iter_value_0; tmp_dictcontraction_1__iter_value_0 = tmp_assign_source_11; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_12; PyObject *tmp_iter_arg_2; CHECK_OBJECT( tmp_dictcontraction_1__iter_value_0 ); tmp_iter_arg_2 = tmp_dictcontraction_1__iter_value_0; tmp_assign_source_12 = MAKE_UNPACK_ITERATOR( tmp_iter_arg_2 ); if ( tmp_assign_source_12 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 27; type_description_2 = "oo"; goto try_except_handler_3; } { PyObject *old = tmp_dictcontraction$tuple_unpack_1__source_iter; tmp_dictcontraction$tuple_unpack_1__source_iter = tmp_assign_source_12; Py_XDECREF( old ); } } { // Tried code: { PyObject *tmp_assign_source_13; PyObject *tmp_unpack_1; CHECK_OBJECT( tmp_dictcontraction$tuple_unpack_1__source_iter ); tmp_unpack_1 = tmp_dictcontraction$tuple_unpack_1__source_iter; tmp_assign_source_13 = UNPACK_NEXT( tmp_unpack_1, 0, 2 ); if ( tmp_assign_source_13 == 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_2 = "oo"; exception_lineno = 27; goto try_except_handler_4; } { PyObject *old = tmp_dictcontraction$tuple_unpack_1__element_1; tmp_dictcontraction$tuple_unpack_1__element_1 = tmp_assign_source_13; Py_XDECREF( old ); } } { PyObject *tmp_assign_source_14; PyObject *tmp_unpack_2; CHECK_OBJECT( tmp_dictcontraction$tuple_unpack_1__source_iter ); tmp_unpack_2 = tmp_dictcontraction$tuple_unpack_1__source_iter; tmp_assign_source_14 = UNPACK_NEXT( tmp_unpack_2, 1, 2 ); if ( tmp_assign_source_14 == 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_2 = "oo"; exception_lineno = 27; goto try_except_handler_4; } { PyObject *old = tmp_dictcontraction$tuple_unpack_1__element_2; tmp_dictcontraction$tuple_unpack_1__element_2 = tmp_assign_source_14; Py_XDECREF( old ); } } { PyObject *tmp_iterator_name_1; CHECK_OBJECT( tmp_dictcontraction$tuple_unpack_1__source_iter ); tmp_iterator_name_1 = tmp_dictcontraction$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_2 = "oo"; exception_lineno = 27; goto try_except_handler_4; } } } else { Py_DECREF( tmp_iterator_attempt ); // TODO: Could avoid PyErr_Format. #if PYTHON_VERSION < 300 PyErr_Format( PyExc_ValueError, "too many values to unpack" ); #else PyErr_Format( PyExc_ValueError, "too many values to unpack (expected 2)" ); #endif FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); type_description_2 = "oo"; exception_lineno = 27; goto try_except_handler_4; } } goto try_end_1; // Exception handler code: try_except_handler_4:; exception_keeper_type_1 = exception_type; exception_keeper_value_1 = exception_value; exception_keeper_tb_1 = exception_tb; exception_keeper_lineno_1 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_dictcontraction$tuple_unpack_1__source_iter ); Py_DECREF( tmp_dictcontraction$tuple_unpack_1__source_iter ); tmp_dictcontraction$tuple_unpack_1__source_iter = NULL; } { // Re-raise. exception_type = exception_keeper_type_1; exception_value = exception_keeper_value_1; exception_tb = exception_keeper_tb_1; exception_lineno = exception_keeper_lineno_1; goto try_except_handler_3; } // End of try: try_end_1:; } goto try_end_2; // Exception handler code: try_except_handler_3:; exception_keeper_type_2 = exception_type; exception_keeper_value_2 = exception_value; exception_keeper_tb_2 = exception_tb; exception_keeper_lineno_2 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( tmp_dictcontraction$tuple_unpack_1__element_1 ); tmp_dictcontraction$tuple_unpack_1__element_1 = NULL; } { Py_XDECREF( tmp_dictcontraction$tuple_unpack_1__element_2 ); tmp_dictcontraction$tuple_unpack_1__element_2 = NULL; } { // Re-raise. exception_type = exception_keeper_type_2; exception_value = exception_keeper_value_2; exception_tb = exception_keeper_tb_2; exception_lineno = exception_keeper_lineno_2; goto try_except_handler_2; } // End of try: try_end_2:; } { CHECK_OBJECT( (PyObject *)tmp_dictcontraction$tuple_unpack_1__source_iter ); Py_DECREF( tmp_dictcontraction$tuple_unpack_1__source_iter ); tmp_dictcontraction$tuple_unpack_1__source_iter = NULL; } { PyObject *tmp_assign_source_15; CHECK_OBJECT( tmp_dictcontraction$tuple_unpack_1__element_1 ); tmp_assign_source_15 = tmp_dictcontraction$tuple_unpack_1__element_1; { PyObject *old = outline_0_var_k; outline_0_var_k = tmp_assign_source_15; Py_INCREF( outline_0_var_k ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_dictcontraction$tuple_unpack_1__element_1 ); tmp_dictcontraction$tuple_unpack_1__element_1 = NULL; } { PyObject *tmp_assign_source_16; CHECK_OBJECT( tmp_dictcontraction$tuple_unpack_1__element_2 ); tmp_assign_source_16 = tmp_dictcontraction$tuple_unpack_1__element_2; { PyObject *old = outline_0_var_v; outline_0_var_v = tmp_assign_source_16; Py_INCREF( outline_0_var_v ); Py_XDECREF( old ); } } { Py_XDECREF( tmp_dictcontraction$tuple_unpack_1__element_2 ); tmp_dictcontraction$tuple_unpack_1__element_2 = NULL; } { nuitka_bool tmp_condition_result_1; int tmp_and_left_truth_1; nuitka_bool tmp_and_left_value_1; nuitka_bool tmp_and_right_value_1; PyObject *tmp_called_instance_2; PyObject *tmp_call_result_1; int tmp_truth_name_1; PyObject *tmp_operand_name_1; PyObject *tmp_called_instance_3; if ( outline_0_var_k == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "k" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 29; type_description_2 = "oo"; goto try_except_handler_2; } tmp_called_instance_2 = outline_0_var_k; frame_4a352ecbe272e0d43d75941a52723f69_2->m_frame.f_lineno = 29; tmp_call_result_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_2, const_str_plain_startswith, &PyTuple_GET_ITEM( const_tuple_str_plain_SIG_tuple, 0 ) ); if ( tmp_call_result_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 29; type_description_2 = "oo"; goto try_except_handler_2; } tmp_truth_name_1 = CHECK_IF_TRUE( tmp_call_result_1 ); if ( tmp_truth_name_1 == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); Py_DECREF( tmp_call_result_1 ); exception_lineno = 29; type_description_2 = "oo"; goto try_except_handler_2; } tmp_and_left_value_1 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; Py_DECREF( tmp_call_result_1 ); 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 ( outline_0_var_k == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "k" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 29; type_description_2 = "oo"; goto try_except_handler_2; } tmp_called_instance_3 = outline_0_var_k; frame_4a352ecbe272e0d43d75941a52723f69_2->m_frame.f_lineno = 29; tmp_operand_name_1 = CALL_METHOD_WITH_ARGS1( tmp_called_instance_3, const_str_plain_startswith, &PyTuple_GET_ITEM( const_tuple_str_plain_SIG__tuple, 0 ) ); if ( tmp_operand_name_1 == NULL ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 29; type_description_2 = "oo"; goto try_except_handler_2; } 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 = 29; type_description_2 = "oo"; goto try_except_handler_2; } tmp_and_right_value_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; tmp_condition_result_1 = tmp_and_right_value_1; goto and_end_1; and_left_1:; tmp_condition_result_1 = tmp_and_left_value_1; and_end_1:; if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE ) { goto branch_yes_1; } else { goto branch_no_1; } branch_yes_1:; { if ( outline_0_var_k == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "k" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 27; type_description_2 = "oo"; goto try_except_handler_2; } tmp_dictset_value = outline_0_var_k; CHECK_OBJECT( tmp_dictcontraction_1__contraction ); tmp_dictset_dict = tmp_dictcontraction_1__contraction; if ( outline_0_var_v == NULL ) { exception_type = PyExc_UnboundLocalError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "v" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 27; type_description_2 = "oo"; goto try_except_handler_2; } tmp_dictset_key = outline_0_var_v; tmp_res = PyDict_SetItem( tmp_dictset_dict, tmp_dictset_key, tmp_dictset_value ); if ( tmp_res != 0 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 27; type_description_2 = "oo"; goto try_except_handler_2; } } branch_no_1:; } if ( CONSIDER_THREADING() == false ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 27; type_description_2 = "oo"; goto try_except_handler_2; } goto loop_start_1; loop_end_1:; } { CHECK_OBJECT( tmp_dictcontraction_1__contraction ); tmp_assign_source_8 = tmp_dictcontraction_1__contraction; Py_INCREF( tmp_assign_source_8 ); goto try_return_handler_2; } // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( telegram$utils$helpers ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_2:; { CHECK_OBJECT( (PyObject *)tmp_dictcontraction_1__$0 ); Py_DECREF( tmp_dictcontraction_1__$0 ); tmp_dictcontraction_1__$0 = NULL; } { CHECK_OBJECT( (PyObject *)tmp_dictcontraction_1__contraction ); Py_DECREF( tmp_dictcontraction_1__contraction ); tmp_dictcontraction_1__contraction = NULL; } { Py_XDECREF( tmp_dictcontraction_1__iter_value_0 ); tmp_dictcontraction_1__iter_value_0 = NULL; } { goto frame_return_exit_1; } // Exception handler code: try_except_handler_2:; exception_keeper_type_3 = exception_type; exception_keeper_value_3 = exception_value; exception_keeper_tb_3 = exception_tb; exception_keeper_lineno_3 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { CHECK_OBJECT( (PyObject *)tmp_dictcontraction_1__$0 ); Py_DECREF( tmp_dictcontraction_1__$0 ); tmp_dictcontraction_1__$0 = NULL; } { CHECK_OBJECT( (PyObject *)tmp_dictcontraction_1__contraction ); Py_DECREF( tmp_dictcontraction_1__contraction ); tmp_dictcontraction_1__contraction = NULL; } { Py_XDECREF( tmp_dictcontraction_1__iter_value_0 ); tmp_dictcontraction_1__iter_value_0 = 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_2; } // End of try: } #if 0 RESTORE_FRAME_EXCEPTION( frame_4a352ecbe272e0d43d75941a52723f69_2 ); #endif // Put the previous frame back on top. popFrameStack(); goto frame_no_exception_1; frame_return_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_4a352ecbe272e0d43d75941a52723f69_2 ); #endif // Put the previous frame back on top. popFrameStack(); goto try_return_handler_1; frame_exception_exit_2:; #if 0 RESTORE_FRAME_EXCEPTION( frame_4a352ecbe272e0d43d75941a52723f69_2 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_4a352ecbe272e0d43d75941a52723f69_2, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_4a352ecbe272e0d43d75941a52723f69_2->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_4a352ecbe272e0d43d75941a52723f69_2, exception_lineno ); } // Attachs locals to frame if any. Nuitka_Frame_AttachLocals( (struct Nuitka_FrameObject *)frame_4a352ecbe272e0d43d75941a52723f69_2, type_description_2, outline_0_var_k, outline_0_var_v ); // Release cached frame. if ( frame_4a352ecbe272e0d43d75941a52723f69_2 == cache_frame_4a352ecbe272e0d43d75941a52723f69_2 ) { Py_DECREF( frame_4a352ecbe272e0d43d75941a52723f69_2 ); } cache_frame_4a352ecbe272e0d43d75941a52723f69_2 = NULL; assertFrameObject( frame_4a352ecbe272e0d43d75941a52723f69_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_1; skip_nested_handling_1:; // tried codes exits in all cases NUITKA_CANNOT_GET_HERE( telegram$utils$helpers ); return MOD_RETURN_VALUE( NULL ); // Return handler code: try_return_handler_1:; { Py_XDECREF( outline_0_var_k ); outline_0_var_k = NULL; } { Py_XDECREF( outline_0_var_v ); outline_0_var_v = NULL; } { goto outline_result_1; } // Exception handler code: try_except_handler_1:; exception_keeper_type_4 = exception_type; exception_keeper_value_4 = exception_value; exception_keeper_tb_4 = exception_tb; exception_keeper_lineno_4 = exception_lineno; exception_type = NULL; exception_value = NULL; exception_tb = NULL; exception_lineno = 0; { Py_XDECREF( outline_0_var_k ); outline_0_var_k = NULL; } { Py_XDECREF( outline_0_var_v ); outline_0_var_v = 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 outline_exception_1; } // End of try: } // Return statement must have exited already. NUITKA_CANNOT_GET_HERE( telegram$utils$helpers ); return MOD_RETURN_VALUE( NULL ); outline_exception_1:; exception_lineno = 27; goto frame_exception_exit_1; outline_result_1:; UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain__signames, tmp_assign_source_8 ); } { PyObject *tmp_assign_source_17; tmp_assign_source_17 = MAKE_FUNCTION_telegram$utils$helpers$$$function_1_get_signal_name( ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_get_signal_name, tmp_assign_source_17 ); } { nuitka_bool tmp_condition_result_2; PyObject *tmp_source_name_1; PyObject *tmp_mvar_value_2; PyObject *tmp_attribute_name_1; tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_datetime ); if (unlikely( tmp_mvar_value_2 == NULL )) { tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_datetime ); } if ( tmp_mvar_value_2 == NULL ) { exception_type = PyExc_NameError; Py_INCREF( exception_type ); exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "datetime" ); exception_tb = NULL; NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb ); CHAIN_EXCEPTION( exception_value ); exception_lineno = 39; goto frame_exception_exit_1; } tmp_source_name_1 = tmp_mvar_value_2; tmp_attribute_name_1 = const_str_plain_timestamp; tmp_res = BUILTIN_HASATTR_BOOL( tmp_source_name_1, tmp_attribute_name_1 ); if ( tmp_res == -1 ) { assert( ERROR_OCCURRED() ); FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb ); exception_lineno = 39; goto frame_exception_exit_1; } tmp_condition_result_2 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE; if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE ) { goto branch_yes_2; } else { goto branch_no_2; } branch_yes_2:; { PyObject *tmp_assign_source_18; tmp_assign_source_18 = MAKE_FUNCTION_telegram$utils$helpers$$$function_2__timestamp( ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain__timestamp, tmp_assign_source_18 ); } goto branch_end_2; branch_no_2:; { PyObject *tmp_assign_source_19; PyObject *tmp_import_name_from_3; PyObject *tmp_name_name_5; PyObject *tmp_globals_name_5; PyObject *tmp_locals_name_5; PyObject *tmp_fromlist_name_5; PyObject *tmp_level_name_5; tmp_name_name_5 = const_str_plain_time; tmp_globals_name_5 = (PyObject *)moduledict_telegram$utils$helpers; tmp_locals_name_5 = Py_None; tmp_fromlist_name_5 = const_tuple_str_plain_mktime_tuple; tmp_level_name_5 = const_int_0; frame_0dcf9d78146ba062ee2950110da0d316->m_frame.f_lineno = 45; tmp_import_name_from_3 = IMPORT_MODULE5( tmp_name_name_5, tmp_globals_name_5, tmp_locals_name_5, tmp_fromlist_name_5, tmp_level_name_5 ); assert( !(tmp_import_name_from_3 == NULL) ); tmp_assign_source_19 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_mktime ); Py_DECREF( tmp_import_name_from_3 ); assert( !(tmp_assign_source_19 == NULL) ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_mktime, tmp_assign_source_19 ); } { PyObject *tmp_assign_source_20; tmp_assign_source_20 = MAKE_FUNCTION_telegram$utils$helpers$$$function_3__timestamp( ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain__timestamp, tmp_assign_source_20 ); } branch_end_2:; } // Restore frame exception if necessary. #if 0 RESTORE_FRAME_EXCEPTION( frame_0dcf9d78146ba062ee2950110da0d316 ); #endif popFrameStack(); assertFrameObject( frame_0dcf9d78146ba062ee2950110da0d316 ); goto frame_no_exception_2; frame_exception_exit_1:; #if 0 RESTORE_FRAME_EXCEPTION( frame_0dcf9d78146ba062ee2950110da0d316 ); #endif if ( exception_tb == NULL ) { exception_tb = MAKE_TRACEBACK( frame_0dcf9d78146ba062ee2950110da0d316, exception_lineno ); } else if ( exception_tb->tb_frame != &frame_0dcf9d78146ba062ee2950110da0d316->m_frame ) { exception_tb = ADD_TRACEBACK( exception_tb, frame_0dcf9d78146ba062ee2950110da0d316, exception_lineno ); } // Put the previous frame back on top. popFrameStack(); // Return the error. goto module_exception_exit; frame_no_exception_2:; { PyObject *tmp_assign_source_21; tmp_assign_source_21 = MAKE_FUNCTION_telegram$utils$helpers$$$function_4_escape_markdown( ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_escape_markdown, tmp_assign_source_21 ); } { PyObject *tmp_assign_source_22; tmp_assign_source_22 = MAKE_FUNCTION_telegram$utils$helpers$$$function_5_to_timestamp( ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_to_timestamp, tmp_assign_source_22 ); } { PyObject *tmp_assign_source_23; tmp_assign_source_23 = MAKE_FUNCTION_telegram$utils$helpers$$$function_6_from_timestamp( ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_from_timestamp, tmp_assign_source_23 ); } { PyObject *tmp_assign_source_24; tmp_assign_source_24 = MAKE_FUNCTION_telegram$utils$helpers$$$function_7_mention_html( ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_mention_html, tmp_assign_source_24 ); } { PyObject *tmp_assign_source_25; tmp_assign_source_25 = MAKE_FUNCTION_telegram$utils$helpers$$$function_8_mention_markdown( ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_mention_markdown, tmp_assign_source_25 ); } { PyObject *tmp_assign_source_26; tmp_assign_source_26 = MAKE_FUNCTION_telegram$utils$helpers$$$function_9_effective_message_type( ); UPDATE_STRING_DICT1( moduledict_telegram$utils$helpers, (Nuitka_StringObject *)const_str_plain_effective_message_type, tmp_assign_source_26 ); } return MOD_RETURN_VALUE( module_telegram$utils$helpers ); module_exception_exit: RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb ); return MOD_RETURN_VALUE( NULL ); }