Files
fesmoo_perdoliq/baraban.build/module.telegram.files.file.c
2019-12-06 12:23:21 +03:00

5966 lines
189 KiB
C

/* Generated code for Python source for module 'telegram.files.file'
* 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$files$file 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$files$file;
PyDictObject *moduledict_telegram$files$file;
/* The module constants used, if any. */
extern PyObject *const_str_plain_metaclass;
static PyObject *const_str_digest_cabc9291071462c9eedbd36969fb936b;
extern PyObject *const_str_plain_credentials;
extern PyObject *const_str_plain_request;
extern PyObject *const_str_plain___name__;
extern PyObject *const_tuple_str_plain_TelegramObject_tuple;
extern PyObject *const_tuple_str_plain___class___tuple;
extern PyObject *const_str_angle_metaclass;
extern PyObject *const_bytearray_72cdf64f605ef12d57287fc4b61c2b5e;
extern PyObject *const_str_plain___file__;
extern PyObject *const_str_plain_retrieve;
extern PyObject *const_str_digest_e399ba4554180f37de594a6743234f17;
extern PyObject *const_str_plain___exit__;
extern PyObject *const_str_plain_download;
extern PyObject *const_tuple_str_plain_parse_tuple;
static PyObject *const_str_digest_66f0f1519b5e328b7dd84406821e3ef0;
static PyObject *const_tuple_6476bd7a61e4ffdf4c191d7b5895416f_tuple;
static PyObject *const_str_digest_3137a89166e2088e2061fef1d5fdf556;
extern PyObject *const_str_plain_scheme;
extern PyObject *const_str_plain_fragment;
extern PyObject *const_str_plain_de_json;
extern PyObject *const_str_plain_None;
extern PyObject *const_str_plain_classmethod;
extern PyObject *const_str_plain___enter__;
extern PyObject *const_str_plain_cls;
extern PyObject *const_tuple_str_plain_self_str_plain_buf_tuple;
extern PyObject *const_tuple_none_none_none_tuple;
static PyObject *const_str_digest_ca72c0ee189d504010e67842e572686b;
static PyObject *const_str_digest_fe6d4317e4e1826f2c2cc5e50da49a10;
extern PyObject *const_str_plain___doc__;
extern PyObject *const_str_plain_TelegramObject;
static PyObject *const_str_digest_3da2f9094f280f017b41cb31e0307172;
extern PyObject *const_str_plain_urlunsplit;
static PyObject *const_tuple_str_plain_self_str_plain_sres_tuple;
extern PyObject *const_str_plain_extend;
extern PyObject *const_str_plain_timeout;
extern PyObject *const_str_plain___orig_bases__;
extern PyObject *const_str_plain_quote;
extern PyObject *const_str_plain_data;
extern PyObject *const_str_plain_wb;
extern PyObject *const_str_plain___qualname__;
static PyObject *const_str_plain_download_as_bytearray;
extern PyObject *const_str_plain_file_size;
static PyObject *const_str_digest_b88e225d9ed05a9e29fa161d5e903e8a;
extern PyObject *const_str_digest_0ac0833f32ef9672b68f8e39be86bb39;
extern PyObject *const_str_plain_path;
extern PyObject *const_str_plain_query;
extern PyObject *const_str_plain_base64;
extern PyObject *const_str_plain_netloc;
static PyObject *const_str_digest_4ca21d38262f65efb066e050e2f8f0f1;
extern PyObject *const_tuple_empty;
extern PyObject *const_str_plain_telegram;
extern PyObject *const_tuple_str_plain_b64decode_tuple;
extern PyObject *const_str_plain_out;
extern PyObject *const_str_plain_fobj;
static PyObject *const_tuple_str_plain_basename_tuple;
static PyObject *const_str_digest_082936072639d6c8801893ac17f6afb5;
extern PyObject *const_str_plain___getitem__;
extern PyObject *const_str_plain__id_attrs;
static PyObject *const_str_digest_f0ef69052f80f5e22c6cf1bb086ec52d;
extern PyObject *const_str_plain_buf;
extern PyObject *const_int_0;
extern PyObject *const_str_plain_SplitResult;
extern PyObject *const_str_plain_bot;
static PyObject *const_str_digest_707e01eafe111e82e9c8725b37cbf6c7;
static PyObject *const_str_digest_49564f22c3c50b6e5b0cd6ba62a3c575;
extern PyObject *const_str_digest_75fd71b1edada749c2ef7ac810062295;
extern PyObject *const_str_plain_file_path;
extern PyObject *const_str_plain_secret;
extern PyObject *const_str_plain_type;
static PyObject *const_str_plain_custom_path;
extern PyObject *const_str_plain_urlsplit;
extern PyObject *const_str_plain___cached__;
extern PyObject *const_str_plain___class__;
extern PyObject *const_str_digest_43c0fb0efa9c4b95948692adb3786795;
extern PyObject *const_tuple_none_tuple;
extern PyObject *const_str_plain_set_credentials;
extern PyObject *const_str_plain_basename;
extern PyObject *const_str_plain___module__;
extern PyObject *const_str_plain_filename;
static PyObject *const_tuple_str_plain_decrypt_tuple;
extern PyObject *const_str_plain_urllib_parse;
static PyObject *const_str_plain__get_encoded_url;
static PyObject *const_str_plain_sres;
static PyObject *const_tuple_str_plain_self_str_plain_credentials_tuple;
static PyObject *const_str_digest_fd09e8c5bcacb6a3b56e856f93afd29b;
extern PyObject *const_str_plain__credentials;
extern PyObject *const_str_plain___prepare__;
extern PyObject *const_str_plain___init__;
extern PyObject *const_str_plain_b64decode;
extern PyObject *const_str_plain_parse;
static PyObject *const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple;
extern PyObject *const_str_plain_self;
extern PyObject *const_str_plain_url;
extern PyObject *const_str_plain_decrypt;
extern PyObject *const_str_plain_File;
extern PyObject *const_str_plain_write;
extern PyObject *const_str_plain_hash;
static PyObject *const_str_digest_9af9bee0cf2caabfffda31be3ccd7874;
extern PyObject *const_str_plain_kwargs;
static PyObject *const_str_digest_9b07f0ad04e5f8112afb27cfeed4e520;
extern PyObject *const_tuple_str_plain_cls_str_plain_data_str_plain_bot_tuple;
extern PyObject *const_str_plain_file_id;
static PyObject *module_filename_obj;
static bool constants_created = false;
static void createModuleConstants( void )
{
const_str_digest_cabc9291071462c9eedbd36969fb936b = UNSTREAM_STRING( &constant_bin[ 1261283 ], 42, 0 );
const_str_digest_66f0f1519b5e328b7dd84406821e3ef0 = UNSTREAM_STRING( &constant_bin[ 1261325 ], 1119, 0 );
const_tuple_6476bd7a61e4ffdf4c191d7b5895416f_tuple = PyTuple_New( 6 );
PyTuple_SET_ITEM( const_tuple_6476bd7a61e4ffdf4c191d7b5895416f_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
PyTuple_SET_ITEM( const_tuple_6476bd7a61e4ffdf4c191d7b5895416f_tuple, 1, const_str_plain_file_id ); Py_INCREF( const_str_plain_file_id );
PyTuple_SET_ITEM( const_tuple_6476bd7a61e4ffdf4c191d7b5895416f_tuple, 2, const_str_plain_bot ); Py_INCREF( const_str_plain_bot );
PyTuple_SET_ITEM( const_tuple_6476bd7a61e4ffdf4c191d7b5895416f_tuple, 3, const_str_plain_file_size ); Py_INCREF( const_str_plain_file_size );
PyTuple_SET_ITEM( const_tuple_6476bd7a61e4ffdf4c191d7b5895416f_tuple, 4, const_str_plain_file_path ); Py_INCREF( const_str_plain_file_path );
PyTuple_SET_ITEM( const_tuple_6476bd7a61e4ffdf4c191d7b5895416f_tuple, 5, const_str_plain_kwargs ); Py_INCREF( const_str_plain_kwargs );
const_str_digest_3137a89166e2088e2061fef1d5fdf556 = UNSTREAM_STRING( &constant_bin[ 1262444 ], 12, 0 );
const_str_digest_ca72c0ee189d504010e67842e572686b = UNSTREAM_STRING( &constant_bin[ 1262456 ], 20, 0 );
const_str_digest_fe6d4317e4e1826f2c2cc5e50da49a10 = UNSTREAM_STRING( &constant_bin[ 1262476 ], 28, 0 );
const_str_digest_3da2f9094f280f017b41cb31e0307172 = UNSTREAM_STRING( &constant_bin[ 1262504 ], 26, 0 );
const_tuple_str_plain_self_str_plain_sres_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_sres_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
const_str_plain_sres = UNSTREAM_STRING( &constant_bin[ 1262530 ], 4, 1 );
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_sres_tuple, 1, const_str_plain_sres ); Py_INCREF( const_str_plain_sres );
const_str_plain_download_as_bytearray = UNSTREAM_STRING( &constant_bin[ 1262509 ], 21, 1 );
const_str_digest_b88e225d9ed05a9e29fa161d5e903e8a = UNSTREAM_STRING( &constant_bin[ 1262534 ], 330, 0 );
const_str_digest_4ca21d38262f65efb066e050e2f8f0f1 = UNSTREAM_STRING( &constant_bin[ 1262864 ], 55, 0 );
const_tuple_str_plain_basename_tuple = PyTuple_New( 1 );
PyTuple_SET_ITEM( const_tuple_str_plain_basename_tuple, 0, const_str_plain_basename ); Py_INCREF( const_str_plain_basename );
const_str_digest_082936072639d6c8801893ac17f6afb5 = UNSTREAM_STRING( &constant_bin[ 1262919 ], 1174, 0 );
const_str_digest_f0ef69052f80f5e22c6cf1bb086ec52d = UNSTREAM_STRING( &constant_bin[ 581848 ], 13, 0 );
const_str_digest_707e01eafe111e82e9c8725b37cbf6c7 = UNSTREAM_STRING( &constant_bin[ 1264093 ], 63, 0 );
const_str_digest_49564f22c3c50b6e5b0cd6ba62a3c575 = UNSTREAM_STRING( &constant_bin[ 1264156 ], 80, 0 );
const_str_plain_custom_path = UNSTREAM_STRING( &constant_bin[ 1261283 ], 11, 1 );
const_tuple_str_plain_decrypt_tuple = PyTuple_New( 1 );
PyTuple_SET_ITEM( const_tuple_str_plain_decrypt_tuple, 0, const_str_plain_decrypt ); Py_INCREF( const_str_plain_decrypt );
const_str_plain__get_encoded_url = UNSTREAM_STRING( &constant_bin[ 1264236 ], 16, 1 );
const_tuple_str_plain_self_str_plain_credentials_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_credentials_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
PyTuple_SET_ITEM( const_tuple_str_plain_self_str_plain_credentials_tuple, 1, const_str_plain_credentials ); Py_INCREF( const_str_plain_credentials );
const_str_digest_fd09e8c5bcacb6a3b56e856f93afd29b = UNSTREAM_STRING( &constant_bin[ 1262484 ], 19, 0 );
const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple = PyTuple_New( 8 );
PyTuple_SET_ITEM( const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple, 0, const_str_plain_self ); Py_INCREF( const_str_plain_self );
PyTuple_SET_ITEM( const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple, 1, const_str_plain_custom_path ); Py_INCREF( const_str_plain_custom_path );
PyTuple_SET_ITEM( const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple, 2, const_str_plain_out ); Py_INCREF( const_str_plain_out );
PyTuple_SET_ITEM( const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple, 3, const_str_plain_timeout ); Py_INCREF( const_str_plain_timeout );
PyTuple_SET_ITEM( const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple, 4, const_str_plain_url ); Py_INCREF( const_str_plain_url );
PyTuple_SET_ITEM( const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple, 5, const_str_plain_buf ); Py_INCREF( const_str_plain_buf );
PyTuple_SET_ITEM( const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple, 6, const_str_plain_filename ); Py_INCREF( const_str_plain_filename );
PyTuple_SET_ITEM( const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple, 7, const_str_plain_fobj ); Py_INCREF( const_str_plain_fobj );
const_str_digest_9af9bee0cf2caabfffda31be3ccd7874 = UNSTREAM_STRING( &constant_bin[ 1264252 ], 21, 0 );
const_str_digest_9b07f0ad04e5f8112afb27cfeed4e520 = UNSTREAM_STRING( &constant_bin[ 1162334 ], 13, 0 );
constants_created = true;
}
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_telegram$files$file( void )
{
// The module may not have been used at all.
if (constants_created == false) return;
}
#endif
// The module code objects.
static PyCodeObject *codeobj_f43697bbc126d44ac8f5fa6ee5201ada;
static PyCodeObject *codeobj_f1ccdc3ba5fa868c2edd130cec3fe1a2;
static PyCodeObject *codeobj_dd8d40227c5454f0527cc7a0378346d7;
static PyCodeObject *codeobj_f63dc0a225326d28a3ac10ddec4fc450;
static PyCodeObject *codeobj_5ecb1fe1fa7c6b931962721e3e6a9513;
static PyCodeObject *codeobj_e5042fc13f3d5f879044b48f39b4218d;
static PyCodeObject *codeobj_4d6b24bb3de0d474ed7d4413481d4eff;
static PyCodeObject *codeobj_6d6a27fb724517823db8ea9b74462ae0;
static void createModuleCodeObjects(void)
{
module_filename_obj = const_str_digest_4ca21d38262f65efb066e050e2f8f0f1;
codeobj_f43697bbc126d44ac8f5fa6ee5201ada = MAKE_CODEOBJ( module_filename_obj, const_str_digest_fe6d4317e4e1826f2c2cc5e50da49a10, 1, const_tuple_empty, 0, 0, CO_NOFREE );
codeobj_f1ccdc3ba5fa868c2edd130cec3fe1a2 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_File, 29, const_tuple_str_plain___class___tuple, 0, 0, CO_NOFREE );
codeobj_dd8d40227c5454f0527cc7a0378346d7 = MAKE_CODEOBJ( module_filename_obj, const_str_plain___init__, 56, const_tuple_6476bd7a61e4ffdf4c191d7b5895416f_tuple, 5, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_VARKEYWORDS | CO_NOFREE );
codeobj_f63dc0a225326d28a3ac10ddec4fc450 = MAKE_CODEOBJ( module_filename_obj, const_str_plain__get_encoded_url, 131, const_tuple_str_plain_self_str_plain_sres_tuple, 1, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_5ecb1fe1fa7c6b931962721e3e6a9513 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_de_json, 69, const_tuple_str_plain_cls_str_plain_data_str_plain_bot_tuple, 3, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_e5042fc13f3d5f879044b48f39b4218d = MAKE_CODEOBJ( module_filename_obj, const_str_plain_download, 76, const_tuple_be015c39f988ac03dd0e1f4ab7ca5897_tuple, 4, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_4d6b24bb3de0d474ed7d4413481d4eff = MAKE_CODEOBJ( module_filename_obj, const_str_plain_download_as_bytearray, 137, const_tuple_str_plain_self_str_plain_buf_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
codeobj_6d6a27fb724517823db8ea9b74462ae0 = MAKE_CODEOBJ( module_filename_obj, const_str_plain_set_credentials, 154, const_tuple_str_plain_self_str_plain_credentials_tuple, 2, 0, CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE );
}
// The module function declarations.
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_1__mro_entries_conversion( PyObject **python_pars );
NUITKA_CROSS_MODULE PyObject *impl___internal__$$$function_10_complex_call_helper_keywords_star_dict( PyObject **python_pars );
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_1___init__( PyObject *defaults );
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_2_de_json( );
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_3_download( PyObject *defaults );
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_4__get_encoded_url( );
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_5_download_as_bytearray( PyObject *defaults );
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_6_set_credentials( );
// The module function definitions.
static PyObject *impl_telegram$files$file$$$function_1___init__( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_file_id = python_pars[ 1 ];
PyObject *par_bot = python_pars[ 2 ];
PyObject *par_file_size = python_pars[ 3 ];
PyObject *par_file_path = python_pars[ 4 ];
PyObject *par_kwargs = python_pars[ 5 ];
struct Nuitka_FrameObject *frame_dd8d40227c5454f0527cc7a0378346d7;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
bool tmp_result;
static struct Nuitka_FrameObject *cache_frame_dd8d40227c5454f0527cc7a0378346d7 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_dd8d40227c5454f0527cc7a0378346d7, codeobj_dd8d40227c5454f0527cc7a0378346d7, module_telegram$files$file, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_dd8d40227c5454f0527cc7a0378346d7 = cache_frame_dd8d40227c5454f0527cc7a0378346d7;
// Push the new frame as the currently active one.
pushFrameStack( frame_dd8d40227c5454f0527cc7a0378346d7 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_dd8d40227c5454f0527cc7a0378346d7 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_unicode_arg_1;
PyObject *tmp_assattr_target_1;
CHECK_OBJECT( par_file_id );
tmp_unicode_arg_1 = par_file_id;
tmp_assattr_name_1 = PyObject_Unicode( tmp_unicode_arg_1 );
if ( tmp_assattr_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 58;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 58;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain_file_id, tmp_assattr_name_1 );
Py_DECREF( tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 58;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_2;
PyObject *tmp_assattr_target_2;
if ( par_file_size == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "file_size" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 61;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_2 = par_file_size;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 61;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_2 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_2, const_str_plain_file_size, tmp_assattr_name_2 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 61;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_3;
PyObject *tmp_assattr_target_3;
if ( par_file_path == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "file_path" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 62;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_3 = par_file_path;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 62;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_3 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_3, const_str_plain_file_path, tmp_assattr_name_3 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 62;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_4;
PyObject *tmp_assattr_target_4;
if ( par_bot == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "bot" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 64;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_4 = par_bot;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 64;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_4 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_4, const_str_plain_bot, tmp_assattr_name_4 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 64;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_5;
PyObject *tmp_assattr_target_5;
tmp_assattr_name_5 = Py_None;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 65;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_5 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_5, const_str_plain__credentials, tmp_assattr_name_5 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 65;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
{
PyObject *tmp_assattr_name_6;
PyObject *tmp_tuple_element_1;
PyObject *tmp_source_name_1;
PyObject *tmp_assattr_target_6;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 67;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = par_self;
tmp_tuple_element_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_file_id );
if ( tmp_tuple_element_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 67;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_name_6 = PyTuple_New( 1 );
PyTuple_SET_ITEM( tmp_assattr_name_6, 0, tmp_tuple_element_1 );
if ( par_self == NULL )
{
Py_DECREF( tmp_assattr_name_6 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 67;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
tmp_assattr_target_6 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_6, const_str_plain__id_attrs, tmp_assattr_name_6 );
Py_DECREF( tmp_assattr_name_6 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 67;
type_description_1 = "oooooo";
goto frame_exception_exit_1;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_dd8d40227c5454f0527cc7a0378346d7 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_dd8d40227c5454f0527cc7a0378346d7 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_dd8d40227c5454f0527cc7a0378346d7, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_dd8d40227c5454f0527cc7a0378346d7->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_dd8d40227c5454f0527cc7a0378346d7, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_dd8d40227c5454f0527cc7a0378346d7,
type_description_1,
par_self,
par_file_id,
par_bot,
par_file_size,
par_file_path,
par_kwargs
);
// Release cached frame.
if ( frame_dd8d40227c5454f0527cc7a0378346d7 == cache_frame_dd8d40227c5454f0527cc7a0378346d7 )
{
Py_DECREF( frame_dd8d40227c5454f0527cc7a0378346d7 );
}
cache_frame_dd8d40227c5454f0527cc7a0378346d7 = NULL;
assertFrameObject( frame_dd8d40227c5454f0527cc7a0378346d7 );
// 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$files$file$$$function_1___init__ );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_file_id );
par_file_id = NULL;
}
{
Py_XDECREF( par_bot );
par_bot = NULL;
}
{
Py_XDECREF( par_file_size );
par_file_size = NULL;
}
{
Py_XDECREF( par_file_path );
par_file_path = NULL;
}
{
Py_XDECREF( par_kwargs );
par_kwargs = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_file_id );
par_file_id = NULL;
}
{
Py_XDECREF( par_bot );
par_bot = NULL;
}
{
Py_XDECREF( par_file_size );
par_file_size = NULL;
}
{
Py_XDECREF( par_file_path );
par_file_path = NULL;
}
{
Py_XDECREF( par_kwargs );
par_kwargs = 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$files$file$$$function_1___init__ );
return NULL;
function_exception_exit:
assert( exception_type );
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return NULL;
function_return_exit:
CHECK_OBJECT( tmp_return_value );
assert( had_error || !ERROR_OCCURRED() );
return tmp_return_value;
}
static PyObject *impl_telegram$files$file$$$function_2_de_json( 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_cls = python_pars[ 0 ];
PyObject *par_data = python_pars[ 1 ];
PyObject *par_bot = python_pars[ 2 ];
struct Nuitka_FrameObject *frame_5ecb1fe1fa7c6b931962721e3e6a9513;
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_5ecb1fe1fa7c6b931962721e3e6a9513 = 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_5ecb1fe1fa7c6b931962721e3e6a9513, codeobj_5ecb1fe1fa7c6b931962721e3e6a9513, module_telegram$files$file, sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_5ecb1fe1fa7c6b931962721e3e6a9513 = cache_frame_5ecb1fe1fa7c6b931962721e3e6a9513;
// Push the new frame as the currently active one.
pushFrameStack( frame_5ecb1fe1fa7c6b931962721e3e6a9513 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_5ecb1fe1fa7c6b931962721e3e6a9513 ) == 2 ); // Frame stack
// Framed code:
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_operand_name_1;
CHECK_OBJECT( par_data );
tmp_operand_name_1 = par_data;
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 = 71;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_condition_result_1 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
tmp_return_value = Py_None;
Py_INCREF( tmp_return_value );
goto frame_return_exit_1;
}
branch_no_1:;
}
{
PyObject *tmp_dircall_arg1_1;
PyObject *tmp_dircall_arg2_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
PyObject *tmp_dircall_arg3_1;
if ( par_cls == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "cls" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 74;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_dircall_arg1_1 = par_cls;
tmp_dict_key_1 = const_str_plain_bot;
if ( par_bot == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "bot" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 74;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = par_bot;
tmp_dircall_arg2_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem( tmp_dircall_arg2_1, tmp_dict_key_1, tmp_dict_value_1 );
assert( !(tmp_res != 0) );
if ( par_data == NULL )
{
Py_DECREF( tmp_dircall_arg2_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "data" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 74;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
tmp_dircall_arg3_1 = par_data;
Py_INCREF( tmp_dircall_arg1_1 );
Py_INCREF( tmp_dircall_arg3_1 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1, tmp_dircall_arg2_1, tmp_dircall_arg3_1};
tmp_return_value = impl___internal__$$$function_10_complex_call_helper_keywords_star_dict( dir_call_args );
}
if ( tmp_return_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 74;
type_description_1 = "ooo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_5ecb1fe1fa7c6b931962721e3e6a9513 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_5ecb1fe1fa7c6b931962721e3e6a9513 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_5ecb1fe1fa7c6b931962721e3e6a9513 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_5ecb1fe1fa7c6b931962721e3e6a9513, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_5ecb1fe1fa7c6b931962721e3e6a9513->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_5ecb1fe1fa7c6b931962721e3e6a9513, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_5ecb1fe1fa7c6b931962721e3e6a9513,
type_description_1,
par_cls,
par_data,
par_bot
);
// Release cached frame.
if ( frame_5ecb1fe1fa7c6b931962721e3e6a9513 == cache_frame_5ecb1fe1fa7c6b931962721e3e6a9513 )
{
Py_DECREF( frame_5ecb1fe1fa7c6b931962721e3e6a9513 );
}
cache_frame_5ecb1fe1fa7c6b931962721e3e6a9513 = NULL;
assertFrameObject( frame_5ecb1fe1fa7c6b931962721e3e6a9513 );
// 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$files$file$$$function_2_de_json );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_cls );
par_cls = NULL;
}
{
Py_XDECREF( par_data );
par_data = NULL;
}
{
Py_XDECREF( par_bot );
par_bot = 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_cls );
par_cls = NULL;
}
{
Py_XDECREF( par_data );
par_data = NULL;
}
{
Py_XDECREF( par_bot );
par_bot = 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$files$file$$$function_2_de_json );
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$files$file$$$function_3_download( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_custom_path = python_pars[ 1 ];
PyObject *par_out = python_pars[ 2 ];
PyObject *par_timeout = python_pars[ 3 ];
PyObject *var_url = NULL;
PyObject *var_buf = NULL;
PyObject *var_filename = NULL;
PyObject *var_fobj = NULL;
PyObject *tmp_with_1__enter = NULL;
PyObject *tmp_with_1__exit = NULL;
nuitka_bool tmp_with_1__indicator = NUITKA_BOOL_UNASSIGNED;
PyObject *tmp_with_1__source = NULL;
struct Nuitka_FrameObject *frame_e5042fc13f3d5f879044b48f39b4218d;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
PyObject *tmp_return_value = NULL;
int tmp_res;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
PyObject *exception_preserved_type_1;
PyObject *exception_preserved_value_1;
PyTracebackObject *exception_preserved_tb_1;
bool tmp_result;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
PyObject *exception_keeper_type_3;
PyObject *exception_keeper_value_3;
PyTracebackObject *exception_keeper_tb_3;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
PyObject *exception_keeper_type_4;
PyObject *exception_keeper_value_4;
PyTracebackObject *exception_keeper_tb_4;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_4;
static struct Nuitka_FrameObject *cache_frame_e5042fc13f3d5f879044b48f39b4218d = NULL;
PyObject *exception_keeper_type_5;
PyObject *exception_keeper_value_5;
PyTracebackObject *exception_keeper_tb_5;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_5;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_e5042fc13f3d5f879044b48f39b4218d, codeobj_e5042fc13f3d5f879044b48f39b4218d, module_telegram$files$file, sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *)+sizeof(void *) );
frame_e5042fc13f3d5f879044b48f39b4218d = cache_frame_e5042fc13f3d5f879044b48f39b4218d;
// Push the new frame as the currently active one.
pushFrameStack( frame_e5042fc13f3d5f879044b48f39b4218d );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_e5042fc13f3d5f879044b48f39b4218d ) == 2 ); // Frame stack
// Framed code:
{
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_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
PyObject *tmp_compexpr_left_2;
PyObject *tmp_compexpr_right_2;
CHECK_OBJECT( par_custom_path );
tmp_compexpr_left_1 = par_custom_path;
tmp_compexpr_right_1 = Py_None;
tmp_and_left_value_1 = ( tmp_compexpr_left_1 != tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
tmp_and_left_truth_1 = tmp_and_left_value_1 == NUITKA_BOOL_TRUE ? 1 : 0;
if ( tmp_and_left_truth_1 == 1 )
{
goto and_right_1;
}
else
{
goto and_left_1;
}
and_right_1:;
if ( par_out == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "out" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 102;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_compexpr_left_2 = par_out;
tmp_compexpr_right_2 = Py_None;
tmp_and_right_value_1 = ( tmp_compexpr_left_2 != tmp_compexpr_right_2 ) ? 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:;
{
PyObject *tmp_raise_type_1;
PyObject *tmp_make_exception_arg_1;
tmp_make_exception_arg_1 = const_str_digest_cabc9291071462c9eedbd36969fb936b;
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 103;
{
PyObject *call_args[] = { tmp_make_exception_arg_1 };
tmp_raise_type_1 = CALL_FUNCTION_WITH_ARGS1( PyExc_ValueError, call_args );
}
assert( !(tmp_raise_type_1 == NULL) );
exception_type = tmp_raise_type_1;
exception_lineno = 103;
RAISE_EXCEPTION_WITH_TYPE( &exception_type, &exception_value, &exception_tb );
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
branch_no_1:;
}
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_instance_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 106;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_instance_1 = par_self;
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 106;
tmp_assign_source_1 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain__get_encoded_url );
if ( tmp_assign_source_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 106;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
assert( var_url == NULL );
var_url = tmp_assign_source_1;
}
{
nuitka_bool tmp_condition_result_2;
int tmp_truth_name_1;
if ( par_out == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "out" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 108;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_1 = CHECK_IF_TRUE( par_out );
if ( tmp_truth_name_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 108;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
{
goto branch_yes_2;
}
else
{
goto branch_no_2;
}
branch_yes_2:;
{
PyObject *tmp_assign_source_2;
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_1;
PyObject *tmp_source_name_2;
PyObject *tmp_source_name_3;
PyObject *tmp_args_element_name_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 109;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_3 = par_self;
tmp_source_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_bot );
if ( tmp_source_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 109;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_request );
Py_DECREF( tmp_source_name_2 );
if ( tmp_source_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 109;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_retrieve );
Py_DECREF( tmp_source_name_1 );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 109;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
if ( var_url == 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", "url" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 109;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_1 = var_url;
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 109;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_assign_source_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
if ( tmp_assign_source_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 109;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
assert( var_buf == NULL );
var_buf = tmp_assign_source_2;
}
{
nuitka_bool tmp_condition_result_3;
PyObject *tmp_source_name_4;
PyObject *tmp_attribute_value_1;
int tmp_truth_name_2;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 110;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_4 = par_self;
tmp_attribute_value_1 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain__credentials );
if ( tmp_attribute_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 110;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_2 = CHECK_IF_TRUE( tmp_attribute_value_1 );
if ( tmp_truth_name_2 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_attribute_value_1 );
exception_lineno = 110;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_3 = tmp_truth_name_2 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_attribute_value_1 );
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
{
goto branch_yes_3;
}
else
{
goto branch_no_3;
}
branch_yes_3:;
{
PyObject *tmp_assign_source_3;
PyObject *tmp_called_name_2;
PyObject *tmp_mvar_value_1;
PyObject *tmp_args_element_name_2;
PyObject *tmp_called_name_3;
PyObject *tmp_mvar_value_2;
PyObject *tmp_args_element_name_3;
PyObject *tmp_source_name_5;
PyObject *tmp_source_name_6;
PyObject *tmp_args_element_name_4;
PyObject *tmp_called_name_4;
PyObject *tmp_mvar_value_3;
PyObject *tmp_args_element_name_5;
PyObject *tmp_source_name_7;
PyObject *tmp_source_name_8;
PyObject *tmp_args_element_name_6;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_decrypt );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_decrypt );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "decrypt" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 111;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_2 = tmp_mvar_value_1;
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_b64decode );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_b64decode );
}
if ( tmp_mvar_value_2 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "b64decode" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 111;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_3 = tmp_mvar_value_2;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 111;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_6 = par_self;
tmp_source_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain__credentials );
if ( tmp_source_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 111;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_secret );
Py_DECREF( tmp_source_name_5 );
if ( tmp_args_element_name_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 111;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 111;
{
PyObject *call_args[] = { tmp_args_element_name_3 };
tmp_args_element_name_2 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_3, call_args );
}
Py_DECREF( tmp_args_element_name_3 );
if ( tmp_args_element_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 111;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_b64decode );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_b64decode );
}
if ( tmp_mvar_value_3 == NULL )
{
Py_DECREF( tmp_args_element_name_2 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "b64decode" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 112;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_4 = tmp_mvar_value_3;
if ( par_self == NULL )
{
Py_DECREF( tmp_args_element_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 112;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_8 = par_self;
tmp_source_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain__credentials );
if ( tmp_source_name_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_args_element_name_2 );
exception_lineno = 112;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_hash );
Py_DECREF( tmp_source_name_7 );
if ( tmp_args_element_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_args_element_name_2 );
exception_lineno = 112;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 112;
{
PyObject *call_args[] = { tmp_args_element_name_5 };
tmp_args_element_name_4 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args );
}
Py_DECREF( tmp_args_element_name_5 );
if ( tmp_args_element_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_args_element_name_2 );
exception_lineno = 112;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
if ( var_buf == NULL )
{
Py_DECREF( tmp_args_element_name_2 );
Py_DECREF( tmp_args_element_name_4 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "buf" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 113;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_6 = var_buf;
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 111;
{
PyObject *call_args[] = { tmp_args_element_name_2, tmp_args_element_name_4, tmp_args_element_name_6 };
tmp_assign_source_3 = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_2, call_args );
}
Py_DECREF( tmp_args_element_name_2 );
Py_DECREF( tmp_args_element_name_4 );
if ( tmp_assign_source_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 111;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_buf;
var_buf = tmp_assign_source_3;
Py_XDECREF( old );
}
}
branch_no_3:;
}
{
PyObject *tmp_called_name_5;
PyObject *tmp_source_name_9;
PyObject *tmp_args_element_name_7;
if ( par_out == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "out" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 114;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_9 = par_out;
tmp_called_name_5 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_write );
if ( tmp_called_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 114;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
if ( var_buf == NULL )
{
Py_DECREF( tmp_called_name_5 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "buf" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 114;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_7 = var_buf;
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 114;
{
PyObject *call_args[] = { tmp_args_element_name_7 };
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_5, call_args );
}
Py_DECREF( tmp_called_name_5 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 114;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
{
if ( par_out == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "out" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 115;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_return_value = par_out;
Py_INCREF( tmp_return_value );
goto frame_return_exit_1;
}
goto branch_end_2;
branch_no_2:;
{
nuitka_bool tmp_condition_result_4;
int tmp_truth_name_3;
if ( par_custom_path == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "custom_path" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 117;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_3 = CHECK_IF_TRUE( par_custom_path );
if ( tmp_truth_name_3 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 117;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_4 = tmp_truth_name_3 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
{
goto branch_yes_4;
}
else
{
goto branch_no_4;
}
branch_yes_4:;
{
PyObject *tmp_assign_source_4;
if ( par_custom_path == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "custom_path" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 118;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_assign_source_4 = par_custom_path;
assert( var_filename == NULL );
Py_INCREF( tmp_assign_source_4 );
var_filename = tmp_assign_source_4;
}
goto branch_end_4;
branch_no_4:;
{
PyObject *tmp_assign_source_5;
PyObject *tmp_called_name_6;
PyObject *tmp_mvar_value_4;
PyObject *tmp_args_element_name_8;
PyObject *tmp_source_name_10;
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_basename );
if (unlikely( tmp_mvar_value_4 == NULL ))
{
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_basename );
}
if ( tmp_mvar_value_4 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "basename" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 120;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_6 = tmp_mvar_value_4;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 120;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_10 = par_self;
tmp_args_element_name_8 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_file_path );
if ( tmp_args_element_name_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 120;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 120;
{
PyObject *call_args[] = { tmp_args_element_name_8 };
tmp_assign_source_5 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_6, call_args );
}
Py_DECREF( tmp_args_element_name_8 );
if ( tmp_assign_source_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 120;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_filename;
var_filename = tmp_assign_source_5;
Py_XDECREF( old );
}
}
branch_end_4:;
}
{
PyObject *tmp_assign_source_6;
PyObject *tmp_called_name_7;
PyObject *tmp_source_name_11;
PyObject *tmp_source_name_12;
PyObject *tmp_source_name_13;
PyObject *tmp_args_name_1;
PyObject *tmp_tuple_element_1;
PyObject *tmp_kw_name_1;
PyObject *tmp_dict_key_1;
PyObject *tmp_dict_value_1;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 122;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_13 = par_self;
tmp_source_name_12 = LOOKUP_ATTRIBUTE( tmp_source_name_13, const_str_plain_bot );
if ( tmp_source_name_12 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 122;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_11 = LOOKUP_ATTRIBUTE( tmp_source_name_12, const_str_plain_request );
Py_DECREF( tmp_source_name_12 );
if ( tmp_source_name_11 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 122;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_11, const_str_plain_retrieve );
Py_DECREF( tmp_source_name_11 );
if ( tmp_called_name_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 122;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
if ( var_url == NULL )
{
Py_DECREF( tmp_called_name_7 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "url" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 122;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_tuple_element_1 = var_url;
tmp_args_name_1 = PyTuple_New( 1 );
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_1 );
tmp_dict_key_1 = const_str_plain_timeout;
if ( par_timeout == NULL )
{
Py_DECREF( tmp_called_name_7 );
Py_DECREF( tmp_args_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "timeout" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 122;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_dict_value_1 = par_timeout;
tmp_kw_name_1 = _PyDict_NewPresized( 1 );
tmp_res = PyDict_SetItem( tmp_kw_name_1, tmp_dict_key_1, tmp_dict_value_1 );
assert( !(tmp_res != 0) );
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 122;
tmp_assign_source_6 = CALL_FUNCTION( tmp_called_name_7, tmp_args_name_1, tmp_kw_name_1 );
Py_DECREF( tmp_called_name_7 );
Py_DECREF( tmp_args_name_1 );
Py_DECREF( tmp_kw_name_1 );
if ( tmp_assign_source_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 122;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
assert( var_buf == NULL );
var_buf = tmp_assign_source_6;
}
{
nuitka_bool tmp_condition_result_5;
PyObject *tmp_source_name_14;
PyObject *tmp_attribute_value_2;
int tmp_truth_name_4;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 123;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_14 = par_self;
tmp_attribute_value_2 = LOOKUP_ATTRIBUTE( tmp_source_name_14, const_str_plain__credentials );
if ( tmp_attribute_value_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 123;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_truth_name_4 = CHECK_IF_TRUE( tmp_attribute_value_2 );
if ( tmp_truth_name_4 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_attribute_value_2 );
exception_lineno = 123;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_condition_result_5 = tmp_truth_name_4 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
Py_DECREF( tmp_attribute_value_2 );
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
{
goto branch_yes_5;
}
else
{
goto branch_no_5;
}
branch_yes_5:;
{
PyObject *tmp_assign_source_7;
PyObject *tmp_called_name_8;
PyObject *tmp_mvar_value_5;
PyObject *tmp_args_element_name_9;
PyObject *tmp_called_name_9;
PyObject *tmp_mvar_value_6;
PyObject *tmp_args_element_name_10;
PyObject *tmp_source_name_15;
PyObject *tmp_source_name_16;
PyObject *tmp_args_element_name_11;
PyObject *tmp_called_name_10;
PyObject *tmp_mvar_value_7;
PyObject *tmp_args_element_name_12;
PyObject *tmp_source_name_17;
PyObject *tmp_source_name_18;
PyObject *tmp_args_element_name_13;
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_decrypt );
if (unlikely( tmp_mvar_value_5 == NULL ))
{
tmp_mvar_value_5 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_decrypt );
}
if ( tmp_mvar_value_5 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "decrypt" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 124;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_8 = tmp_mvar_value_5;
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_b64decode );
if (unlikely( tmp_mvar_value_6 == NULL ))
{
tmp_mvar_value_6 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_b64decode );
}
if ( tmp_mvar_value_6 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "b64decode" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 124;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_9 = tmp_mvar_value_6;
if ( par_self == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 124;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_16 = par_self;
tmp_source_name_15 = LOOKUP_ATTRIBUTE( tmp_source_name_16, const_str_plain__credentials );
if ( tmp_source_name_15 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 124;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_10 = LOOKUP_ATTRIBUTE( tmp_source_name_15, const_str_plain_secret );
Py_DECREF( tmp_source_name_15 );
if ( tmp_args_element_name_10 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 124;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 124;
{
PyObject *call_args[] = { tmp_args_element_name_10 };
tmp_args_element_name_9 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_9, call_args );
}
Py_DECREF( tmp_args_element_name_10 );
if ( tmp_args_element_name_9 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 124;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_b64decode );
if (unlikely( tmp_mvar_value_7 == NULL ))
{
tmp_mvar_value_7 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_b64decode );
}
if ( tmp_mvar_value_7 == NULL )
{
Py_DECREF( tmp_args_element_name_9 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "b64decode" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 125;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_called_name_10 = tmp_mvar_value_7;
if ( par_self == NULL )
{
Py_DECREF( tmp_args_element_name_9 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 125;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_source_name_18 = par_self;
tmp_source_name_17 = LOOKUP_ATTRIBUTE( tmp_source_name_18, const_str_plain__credentials );
if ( tmp_source_name_17 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_args_element_name_9 );
exception_lineno = 125;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_12 = LOOKUP_ATTRIBUTE( tmp_source_name_17, const_str_plain_hash );
Py_DECREF( tmp_source_name_17 );
if ( tmp_args_element_name_12 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_args_element_name_9 );
exception_lineno = 125;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 125;
{
PyObject *call_args[] = { tmp_args_element_name_12 };
tmp_args_element_name_11 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_10, call_args );
}
Py_DECREF( tmp_args_element_name_12 );
if ( tmp_args_element_name_11 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_args_element_name_9 );
exception_lineno = 125;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
if ( var_buf == NULL )
{
Py_DECREF( tmp_args_element_name_9 );
Py_DECREF( tmp_args_element_name_11 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "buf" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 126;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_args_element_name_13 = var_buf;
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 124;
{
PyObject *call_args[] = { tmp_args_element_name_9, tmp_args_element_name_11, tmp_args_element_name_13 };
tmp_assign_source_7 = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_8, call_args );
}
Py_DECREF( tmp_args_element_name_9 );
Py_DECREF( tmp_args_element_name_11 );
if ( tmp_assign_source_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 124;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
{
PyObject *old = var_buf;
var_buf = tmp_assign_source_7;
Py_XDECREF( old );
}
}
branch_no_5:;
}
{
// Tried code:
{
PyObject *tmp_assign_source_8;
PyObject *tmp_open_filename_1;
PyObject *tmp_open_mode_1;
if ( var_filename == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "filename" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 127;
type_description_1 = "oooooooo";
goto try_except_handler_2;
}
tmp_open_filename_1 = var_filename;
tmp_open_mode_1 = const_str_plain_wb;
tmp_assign_source_8 = BUILTIN_OPEN( tmp_open_filename_1, tmp_open_mode_1, NULL, NULL, NULL, NULL, NULL, NULL );
if ( tmp_assign_source_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 127;
type_description_1 = "oooooooo";
goto try_except_handler_2;
}
assert( tmp_with_1__source == NULL );
tmp_with_1__source = tmp_assign_source_8;
}
{
PyObject *tmp_assign_source_9;
PyObject *tmp_called_name_11;
PyObject *tmp_source_name_19;
CHECK_OBJECT( tmp_with_1__source );
tmp_source_name_19 = tmp_with_1__source;
tmp_called_name_11 = LOOKUP_SPECIAL( tmp_source_name_19, const_str_plain___enter__ );
if ( tmp_called_name_11 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 127;
type_description_1 = "oooooooo";
goto try_except_handler_2;
}
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 127;
tmp_assign_source_9 = CALL_FUNCTION_NO_ARGS( tmp_called_name_11 );
Py_DECREF( tmp_called_name_11 );
if ( tmp_assign_source_9 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 127;
type_description_1 = "oooooooo";
goto try_except_handler_2;
}
assert( tmp_with_1__enter == NULL );
tmp_with_1__enter = tmp_assign_source_9;
}
{
PyObject *tmp_assign_source_10;
PyObject *tmp_source_name_20;
CHECK_OBJECT( tmp_with_1__source );
tmp_source_name_20 = tmp_with_1__source;
tmp_assign_source_10 = LOOKUP_SPECIAL( tmp_source_name_20, const_str_plain___exit__ );
if ( tmp_assign_source_10 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 127;
type_description_1 = "oooooooo";
goto try_except_handler_2;
}
assert( tmp_with_1__exit == NULL );
tmp_with_1__exit = tmp_assign_source_10;
}
{
nuitka_bool tmp_assign_source_11;
tmp_assign_source_11 = NUITKA_BOOL_TRUE;
tmp_with_1__indicator = tmp_assign_source_11;
}
{
PyObject *tmp_assign_source_12;
CHECK_OBJECT( tmp_with_1__enter );
tmp_assign_source_12 = tmp_with_1__enter;
assert( var_fobj == NULL );
Py_INCREF( tmp_assign_source_12 );
var_fobj = tmp_assign_source_12;
}
{
// Tried code:
{
// Tried code:
{
PyObject *tmp_called_name_12;
PyObject *tmp_source_name_21;
PyObject *tmp_args_element_name_14;
CHECK_OBJECT( var_fobj );
tmp_source_name_21 = var_fobj;
tmp_called_name_12 = LOOKUP_ATTRIBUTE( tmp_source_name_21, const_str_plain_write );
if ( tmp_called_name_12 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 128;
type_description_1 = "oooooooo";
goto try_except_handler_4;
}
if ( var_buf == NULL )
{
Py_DECREF( tmp_called_name_12 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "buf" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 128;
type_description_1 = "oooooooo";
goto try_except_handler_4;
}
tmp_args_element_name_14 = var_buf;
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 128;
{
PyObject *call_args[] = { tmp_args_element_name_14 };
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_12, call_args );
}
Py_DECREF( tmp_called_name_12 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 128;
type_description_1 = "oooooooo";
goto try_except_handler_4;
}
Py_DECREF( tmp_unused );
}
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;
{
// Preserve existing published exception.
exception_preserved_type_1 = EXC_TYPE(PyThreadState_GET());
Py_XINCREF( exception_preserved_type_1 );
exception_preserved_value_1 = EXC_VALUE(PyThreadState_GET());
Py_XINCREF( exception_preserved_value_1 );
exception_preserved_tb_1 = (PyTracebackObject *)EXC_TRACEBACK(PyThreadState_GET());
Py_XINCREF( exception_preserved_tb_1 );
}
{
if ( exception_keeper_tb_1 == NULL )
{
exception_keeper_tb_1 = MAKE_TRACEBACK( frame_e5042fc13f3d5f879044b48f39b4218d, exception_keeper_lineno_1 );
}
else if ( exception_keeper_lineno_1 != 0 )
{
exception_keeper_tb_1 = ADD_TRACEBACK( exception_keeper_tb_1, frame_e5042fc13f3d5f879044b48f39b4218d, exception_keeper_lineno_1 );
}
NORMALIZE_EXCEPTION( &exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1 );
PyException_SetTraceback( exception_keeper_value_1, (PyObject *)exception_keeper_tb_1 );
PUBLISH_EXCEPTION( &exception_keeper_type_1, &exception_keeper_value_1, &exception_keeper_tb_1 );
}
{
// Tried code:
{
nuitka_bool tmp_condition_result_6;
PyObject *tmp_compexpr_left_3;
PyObject *tmp_compexpr_right_3;
tmp_compexpr_left_3 = EXC_TYPE(PyThreadState_GET());
tmp_compexpr_right_3 = PyExc_BaseException;
tmp_res = EXCEPTION_MATCH_BOOL( tmp_compexpr_left_3, tmp_compexpr_right_3 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 127;
type_description_1 = "oooooooo";
goto try_except_handler_5;
}
tmp_condition_result_6 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE )
{
goto branch_yes_6;
}
else
{
goto branch_no_6;
}
branch_yes_6:;
{
nuitka_bool tmp_assign_source_13;
tmp_assign_source_13 = NUITKA_BOOL_FALSE;
tmp_with_1__indicator = tmp_assign_source_13;
}
{
nuitka_bool tmp_condition_result_7;
PyObject *tmp_operand_name_1;
PyObject *tmp_called_name_13;
PyObject *tmp_args_element_name_15;
PyObject *tmp_args_element_name_16;
PyObject *tmp_args_element_name_17;
CHECK_OBJECT( tmp_with_1__exit );
tmp_called_name_13 = tmp_with_1__exit;
tmp_args_element_name_15 = EXC_TYPE(PyThreadState_GET());
tmp_args_element_name_16 = EXC_VALUE(PyThreadState_GET());
tmp_args_element_name_17 = EXC_TRACEBACK(PyThreadState_GET());
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 127;
{
PyObject *call_args[] = { tmp_args_element_name_15, tmp_args_element_name_16, tmp_args_element_name_17 };
tmp_operand_name_1 = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_13, call_args );
}
if ( tmp_operand_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 127;
type_description_1 = "oooooooo";
goto try_except_handler_5;
}
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 = 127;
type_description_1 = "oooooooo";
goto try_except_handler_5;
}
tmp_condition_result_7 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE )
{
goto branch_yes_7;
}
else
{
goto branch_no_7;
}
branch_yes_7:;
{
tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
if (unlikely( tmp_result == false ))
{
exception_lineno = 127;
}
if (exception_tb && exception_tb->tb_frame == &frame_e5042fc13f3d5f879044b48f39b4218d->m_frame) frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = exception_tb->tb_lineno;
type_description_1 = "oooooooo";
goto try_except_handler_5;
}
branch_no_7:;
}
goto branch_end_6;
branch_no_6:;
{
tmp_result = RERAISE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
if (unlikely( tmp_result == false ))
{
exception_lineno = 127;
}
if (exception_tb && exception_tb->tb_frame == &frame_e5042fc13f3d5f879044b48f39b4218d->m_frame) frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = exception_tb->tb_lineno;
type_description_1 = "oooooooo";
goto try_except_handler_5;
}
branch_end_6:;
}
goto try_end_2;
// Exception handler code:
try_except_handler_5:;
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;
{
// Restore previous exception.
SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 );
}
{
// Re-raise.
exception_type = exception_keeper_type_2;
exception_value = exception_keeper_value_2;
exception_tb = exception_keeper_tb_2;
exception_lineno = exception_keeper_lineno_2;
goto try_except_handler_3;
}
// End of try:
try_end_2:;
}
{
// Restore previous exception.
SET_CURRENT_EXCEPTION( exception_preserved_type_1, exception_preserved_value_1, exception_preserved_tb_1 );
}
goto try_end_1;
// exception handler codes exits in all cases
NUITKA_CANNOT_GET_HERE( telegram$files$file$$$function_3_download );
return NULL;
// End of try:
try_end_1:;
}
goto try_end_3;
// Exception handler code:
try_except_handler_3:;
exception_keeper_type_3 = exception_type;
exception_keeper_value_3 = exception_value;
exception_keeper_tb_3 = exception_tb;
exception_keeper_lineno_3 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
nuitka_bool tmp_condition_result_8;
PyObject *tmp_compexpr_left_4;
PyObject *tmp_compexpr_right_4;
assert( tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED);
tmp_compexpr_left_4 = ( tmp_with_1__indicator == NUITKA_BOOL_TRUE ) ? Py_True : Py_False;
tmp_compexpr_right_4 = Py_True;
tmp_condition_result_8 = ( tmp_compexpr_left_4 == tmp_compexpr_right_4 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_8 == NUITKA_BOOL_TRUE )
{
goto branch_yes_8;
}
else
{
goto branch_no_8;
}
branch_yes_8:;
{
PyObject *tmp_called_name_14;
CHECK_OBJECT( tmp_with_1__exit );
tmp_called_name_14 = tmp_with_1__exit;
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 127;
tmp_unused = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_14, &PyTuple_GET_ITEM( const_tuple_none_none_none_tuple, 0 ) );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( exception_keeper_type_3 );
Py_XDECREF( exception_keeper_value_3 );
Py_XDECREF( exception_keeper_tb_3 );
exception_lineno = 127;
type_description_1 = "oooooooo";
goto try_except_handler_2;
}
Py_DECREF( tmp_unused );
}
branch_no_8:;
}
{
// Re-raise.
exception_type = exception_keeper_type_3;
exception_value = exception_keeper_value_3;
exception_tb = exception_keeper_tb_3;
exception_lineno = exception_keeper_lineno_3;
goto try_except_handler_2;
}
// End of try:
try_end_3:;
}
{
nuitka_bool tmp_condition_result_9;
PyObject *tmp_compexpr_left_5;
PyObject *tmp_compexpr_right_5;
assert( tmp_with_1__indicator != NUITKA_BOOL_UNASSIGNED);
tmp_compexpr_left_5 = ( tmp_with_1__indicator == NUITKA_BOOL_TRUE ) ? Py_True : Py_False;
tmp_compexpr_right_5 = Py_True;
tmp_condition_result_9 = ( tmp_compexpr_left_5 == tmp_compexpr_right_5 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_9 == NUITKA_BOOL_TRUE )
{
goto branch_yes_9;
}
else
{
goto branch_no_9;
}
branch_yes_9:;
{
PyObject *tmp_called_name_15;
CHECK_OBJECT( tmp_with_1__exit );
tmp_called_name_15 = tmp_with_1__exit;
frame_e5042fc13f3d5f879044b48f39b4218d->m_frame.f_lineno = 127;
tmp_unused = CALL_FUNCTION_WITH_ARGS3( tmp_called_name_15, &PyTuple_GET_ITEM( const_tuple_none_none_none_tuple, 0 ) );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 127;
type_description_1 = "oooooooo";
goto try_except_handler_2;
}
Py_DECREF( tmp_unused );
}
branch_no_9:;
}
goto try_end_4;
// Exception handler code:
try_except_handler_2:;
exception_keeper_type_4 = exception_type;
exception_keeper_value_4 = exception_value;
exception_keeper_tb_4 = exception_tb;
exception_keeper_lineno_4 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_with_1__source );
tmp_with_1__source = NULL;
}
{
Py_XDECREF( tmp_with_1__enter );
tmp_with_1__enter = NULL;
}
{
Py_XDECREF( tmp_with_1__exit );
tmp_with_1__exit = NULL;
}
{
}
{
// Re-raise.
exception_type = exception_keeper_type_4;
exception_value = exception_keeper_value_4;
exception_tb = exception_keeper_tb_4;
exception_lineno = exception_keeper_lineno_4;
goto frame_exception_exit_1;
}
// End of try:
try_end_4:;
}
{
CHECK_OBJECT( (PyObject *)tmp_with_1__source );
Py_DECREF( tmp_with_1__source );
tmp_with_1__source = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_with_1__enter );
Py_DECREF( tmp_with_1__enter );
tmp_with_1__enter = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_with_1__exit );
Py_DECREF( tmp_with_1__exit );
tmp_with_1__exit = NULL;
}
{
}
{
if ( var_filename == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "filename" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 129;
type_description_1 = "oooooooo";
goto frame_exception_exit_1;
}
tmp_return_value = var_filename;
Py_INCREF( tmp_return_value );
goto frame_return_exit_1;
}
branch_end_2:;
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_e5042fc13f3d5f879044b48f39b4218d );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_e5042fc13f3d5f879044b48f39b4218d );
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_e5042fc13f3d5f879044b48f39b4218d );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_e5042fc13f3d5f879044b48f39b4218d, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_e5042fc13f3d5f879044b48f39b4218d->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_e5042fc13f3d5f879044b48f39b4218d, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_e5042fc13f3d5f879044b48f39b4218d,
type_description_1,
par_self,
par_custom_path,
par_out,
par_timeout,
var_url,
var_buf,
var_filename,
var_fobj
);
// Release cached frame.
if ( frame_e5042fc13f3d5f879044b48f39b4218d == cache_frame_e5042fc13f3d5f879044b48f39b4218d )
{
Py_DECREF( frame_e5042fc13f3d5f879044b48f39b4218d );
}
cache_frame_e5042fc13f3d5f879044b48f39b4218d = NULL;
assertFrameObject( frame_e5042fc13f3d5f879044b48f39b4218d );
// 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$files$file$$$function_3_download );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_custom_path );
par_custom_path = NULL;
}
{
Py_XDECREF( par_out );
par_out = NULL;
}
{
Py_XDECREF( par_timeout );
par_timeout = NULL;
}
{
Py_XDECREF( var_url );
var_url = NULL;
}
{
Py_XDECREF( var_buf );
var_buf = NULL;
}
{
Py_XDECREF( var_filename );
var_filename = NULL;
}
{
Py_XDECREF( var_fobj );
var_fobj = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_5 = exception_type;
exception_keeper_value_5 = exception_value;
exception_keeper_tb_5 = exception_tb;
exception_keeper_lineno_5 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_custom_path );
par_custom_path = NULL;
}
{
Py_XDECREF( par_out );
par_out = NULL;
}
{
Py_XDECREF( par_timeout );
par_timeout = NULL;
}
{
Py_XDECREF( var_url );
var_url = NULL;
}
{
Py_XDECREF( var_buf );
var_buf = NULL;
}
{
Py_XDECREF( var_filename );
var_filename = NULL;
}
{
Py_XDECREF( var_fobj );
var_fobj = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_5;
exception_value = exception_keeper_value_5;
exception_tb = exception_keeper_tb_5;
exception_lineno = exception_keeper_lineno_5;
goto function_exception_exit;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( telegram$files$file$$$function_3_download );
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$files$file$$$function_4__get_encoded_url( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *var_sres = NULL;
struct Nuitka_FrameObject *frame_f63dc0a225326d28a3ac10ddec4fc450;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
PyObject *tmp_return_value = NULL;
static struct Nuitka_FrameObject *cache_frame_f63dc0a225326d28a3ac10ddec4fc450 = 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_f63dc0a225326d28a3ac10ddec4fc450, codeobj_f63dc0a225326d28a3ac10ddec4fc450, module_telegram$files$file, sizeof(void *)+sizeof(void *) );
frame_f63dc0a225326d28a3ac10ddec4fc450 = cache_frame_f63dc0a225326d28a3ac10ddec4fc450;
// Push the new frame as the currently active one.
pushFrameStack( frame_f63dc0a225326d28a3ac10ddec4fc450 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_f63dc0a225326d28a3ac10ddec4fc450 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assign_source_1;
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_1;
PyObject *tmp_mvar_value_1;
PyObject *tmp_args_element_name_1;
PyObject *tmp_source_name_2;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_urllib_parse );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_urllib_parse );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "urllib_parse" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 133;
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_urlsplit );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 133;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_called_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 133;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_2 = par_self;
tmp_args_element_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_file_path );
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 = 133;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
frame_f63dc0a225326d28a3ac10ddec4fc450->m_frame.f_lineno = 133;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_assign_source_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_args_element_name_1 );
if ( tmp_assign_source_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 133;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
assert( var_sres == NULL );
var_sres = tmp_assign_source_1;
}
{
PyObject *tmp_called_name_2;
PyObject *tmp_source_name_3;
PyObject *tmp_mvar_value_2;
PyObject *tmp_args_element_name_2;
PyObject *tmp_called_name_3;
PyObject *tmp_source_name_4;
PyObject *tmp_mvar_value_3;
PyObject *tmp_args_element_name_3;
PyObject *tmp_source_name_5;
PyObject *tmp_args_element_name_4;
PyObject *tmp_source_name_6;
PyObject *tmp_args_element_name_5;
PyObject *tmp_called_name_4;
PyObject *tmp_source_name_7;
PyObject *tmp_mvar_value_4;
PyObject *tmp_args_element_name_6;
PyObject *tmp_source_name_8;
PyObject *tmp_args_element_name_7;
PyObject *tmp_source_name_9;
PyObject *tmp_args_element_name_8;
PyObject *tmp_source_name_10;
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_urllib_parse );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_urllib_parse );
}
if ( tmp_mvar_value_2 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "urllib_parse" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 134;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_3 = tmp_mvar_value_2;
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_urlunsplit );
if ( tmp_called_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 134;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_urllib_parse );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_urllib_parse );
}
if ( tmp_mvar_value_3 == NULL )
{
Py_DECREF( tmp_called_name_2 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "urllib_parse" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 134;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_4 = tmp_mvar_value_3;
tmp_called_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_SplitResult );
if ( tmp_called_name_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_2 );
exception_lineno = 134;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( var_sres == NULL )
{
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "sres" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_5 = var_sres;
tmp_args_element_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_5, const_str_plain_scheme );
if ( tmp_args_element_name_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( var_sres == NULL )
{
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "sres" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_6 = var_sres;
tmp_args_element_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_6, const_str_plain_netloc );
if ( tmp_args_element_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_urllib_parse );
if (unlikely( tmp_mvar_value_4 == NULL ))
{
tmp_mvar_value_4 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_urllib_parse );
}
if ( tmp_mvar_value_4 == NULL )
{
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "urllib_parse" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_7 = tmp_mvar_value_4;
tmp_called_name_4 = LOOKUP_ATTRIBUTE( tmp_source_name_7, const_str_plain_quote );
if ( tmp_called_name_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( var_sres == NULL )
{
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
Py_DECREF( tmp_called_name_4 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "sres" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_8 = var_sres;
tmp_args_element_name_6 = LOOKUP_ATTRIBUTE( tmp_source_name_8, const_str_plain_path );
if ( tmp_args_element_name_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
Py_DECREF( tmp_called_name_4 );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
frame_f63dc0a225326d28a3ac10ddec4fc450->m_frame.f_lineno = 135;
{
PyObject *call_args[] = { tmp_args_element_name_6 };
tmp_args_element_name_5 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_4, call_args );
}
Py_DECREF( tmp_called_name_4 );
Py_DECREF( tmp_args_element_name_6 );
if ( tmp_args_element_name_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( var_sres == NULL )
{
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
Py_DECREF( tmp_args_element_name_5 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "sres" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_9 = var_sres;
tmp_args_element_name_7 = LOOKUP_ATTRIBUTE( tmp_source_name_9, const_str_plain_query );
if ( tmp_args_element_name_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
Py_DECREF( tmp_args_element_name_5 );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( var_sres == NULL )
{
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
Py_DECREF( tmp_args_element_name_5 );
Py_DECREF( tmp_args_element_name_7 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "sres" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_10 = var_sres;
tmp_args_element_name_8 = LOOKUP_ATTRIBUTE( tmp_source_name_10, const_str_plain_fragment );
if ( tmp_args_element_name_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
Py_DECREF( tmp_args_element_name_5 );
Py_DECREF( tmp_args_element_name_7 );
exception_lineno = 135;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
frame_f63dc0a225326d28a3ac10ddec4fc450->m_frame.f_lineno = 134;
{
PyObject *call_args[] = { tmp_args_element_name_3, tmp_args_element_name_4, tmp_args_element_name_5, tmp_args_element_name_7, tmp_args_element_name_8 };
tmp_args_element_name_2 = CALL_FUNCTION_WITH_ARGS5( tmp_called_name_3, call_args );
}
Py_DECREF( tmp_called_name_3 );
Py_DECREF( tmp_args_element_name_3 );
Py_DECREF( tmp_args_element_name_4 );
Py_DECREF( tmp_args_element_name_5 );
Py_DECREF( tmp_args_element_name_7 );
Py_DECREF( tmp_args_element_name_8 );
if ( tmp_args_element_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_2 );
exception_lineno = 134;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
frame_f63dc0a225326d28a3ac10ddec4fc450->m_frame.f_lineno = 134;
{
PyObject *call_args[] = { tmp_args_element_name_2 };
tmp_return_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args );
}
Py_DECREF( tmp_called_name_2 );
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 = 134;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_f63dc0a225326d28a3ac10ddec4fc450 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_f63dc0a225326d28a3ac10ddec4fc450 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_f63dc0a225326d28a3ac10ddec4fc450 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_f63dc0a225326d28a3ac10ddec4fc450, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_f63dc0a225326d28a3ac10ddec4fc450->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_f63dc0a225326d28a3ac10ddec4fc450, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_f63dc0a225326d28a3ac10ddec4fc450,
type_description_1,
par_self,
var_sres
);
// Release cached frame.
if ( frame_f63dc0a225326d28a3ac10ddec4fc450 == cache_frame_f63dc0a225326d28a3ac10ddec4fc450 )
{
Py_DECREF( frame_f63dc0a225326d28a3ac10ddec4fc450 );
}
cache_frame_f63dc0a225326d28a3ac10ddec4fc450 = NULL;
assertFrameObject( frame_f63dc0a225326d28a3ac10ddec4fc450 );
// 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$files$file$$$function_4__get_encoded_url );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_sres );
var_sres = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( var_sres );
var_sres = 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$files$file$$$function_4__get_encoded_url );
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$files$file$$$function_5_download_as_bytearray( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_buf = python_pars[ 1 ];
struct Nuitka_FrameObject *frame_4d6b24bb3de0d474ed7d4413481d4eff;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
NUITKA_MAY_BE_UNUSED PyObject *tmp_unused;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
PyObject *tmp_return_value = NULL;
static struct Nuitka_FrameObject *cache_frame_4d6b24bb3de0d474ed7d4413481d4eff = 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.
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
CHECK_OBJECT( par_buf );
tmp_compexpr_left_1 = par_buf;
tmp_compexpr_right_1 = Py_None;
tmp_condition_result_1 = ( tmp_compexpr_left_1 == tmp_compexpr_right_1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = BYTEARRAY_COPY( const_bytearray_72cdf64f605ef12d57287fc4b61c2b5e );
{
PyObject *old = par_buf;
par_buf = tmp_assign_source_1;
Py_XDECREF( old );
}
}
branch_no_1:;
}
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_4d6b24bb3de0d474ed7d4413481d4eff, codeobj_4d6b24bb3de0d474ed7d4413481d4eff, module_telegram$files$file, sizeof(void *)+sizeof(void *) );
frame_4d6b24bb3de0d474ed7d4413481d4eff = cache_frame_4d6b24bb3de0d474ed7d4413481d4eff;
// Push the new frame as the currently active one.
pushFrameStack( frame_4d6b24bb3de0d474ed7d4413481d4eff );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_4d6b24bb3de0d474ed7d4413481d4eff ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_1;
PyObject *tmp_args_element_name_1;
PyObject *tmp_called_name_2;
PyObject *tmp_source_name_2;
PyObject *tmp_source_name_3;
PyObject *tmp_source_name_4;
PyObject *tmp_args_element_name_2;
PyObject *tmp_called_instance_1;
if ( par_buf == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "buf" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_1 = par_buf;
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_extend );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_called_name_1 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_4 = par_self;
tmp_source_name_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain_bot );
if ( tmp_source_name_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_1 );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_source_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_3, const_str_plain_request );
Py_DECREF( tmp_source_name_3 );
if ( tmp_source_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_1 );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_called_name_2 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain_retrieve );
Py_DECREF( tmp_source_name_2 );
if ( tmp_called_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_called_name_1 );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
if ( par_self == NULL )
{
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_called_name_2 );
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "self" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_called_instance_1 = par_self;
frame_4d6b24bb3de0d474ed7d4413481d4eff->m_frame.f_lineno = 151;
tmp_args_element_name_2 = CALL_METHOD_NO_ARGS( tmp_called_instance_1, const_str_plain__get_encoded_url );
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 );
Py_DECREF( tmp_called_name_2 );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
frame_4d6b24bb3de0d474ed7d4413481d4eff->m_frame.f_lineno = 151;
{
PyObject *call_args[] = { tmp_args_element_name_2 };
tmp_args_element_name_1 = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args );
}
Py_DECREF( tmp_called_name_2 );
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 );
Py_DECREF( tmp_called_name_1 );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
frame_4d6b24bb3de0d474ed7d4413481d4eff->m_frame.f_lineno = 151;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_unused = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_1, call_args );
}
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_args_element_name_1 );
if ( tmp_unused == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 151;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
Py_DECREF( tmp_unused );
}
{
if ( par_buf == NULL )
{
exception_type = PyExc_UnboundLocalError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "local variable '%s' referenced before assignment", "buf" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 152;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
tmp_return_value = par_buf;
Py_INCREF( tmp_return_value );
goto frame_return_exit_1;
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_4d6b24bb3de0d474ed7d4413481d4eff );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_return_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_4d6b24bb3de0d474ed7d4413481d4eff );
#endif
// Put the previous frame back on top.
popFrameStack();
goto try_return_handler_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_4d6b24bb3de0d474ed7d4413481d4eff );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_4d6b24bb3de0d474ed7d4413481d4eff, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_4d6b24bb3de0d474ed7d4413481d4eff->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_4d6b24bb3de0d474ed7d4413481d4eff, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_4d6b24bb3de0d474ed7d4413481d4eff,
type_description_1,
par_self,
par_buf
);
// Release cached frame.
if ( frame_4d6b24bb3de0d474ed7d4413481d4eff == cache_frame_4d6b24bb3de0d474ed7d4413481d4eff )
{
Py_DECREF( frame_4d6b24bb3de0d474ed7d4413481d4eff );
}
cache_frame_4d6b24bb3de0d474ed7d4413481d4eff = NULL;
assertFrameObject( frame_4d6b24bb3de0d474ed7d4413481d4eff );
// 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$files$file$$$function_5_download_as_bytearray );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_buf );
par_buf = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_buf );
par_buf = 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$files$file$$$function_5_download_as_bytearray );
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$files$file$$$function_6_set_credentials( struct Nuitka_FunctionObject const *self, PyObject **python_pars )
{
// Preserve error status for checks
#ifndef __NUITKA_NO_ASSERT__
NUITKA_MAY_BE_UNUSED bool had_error = ERROR_OCCURRED();
#endif
// Local variable declarations.
PyObject *par_self = python_pars[ 0 ];
PyObject *par_credentials = python_pars[ 1 ];
struct Nuitka_FrameObject *frame_6d6a27fb724517823db8ea9b74462ae0;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
bool tmp_result;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
static struct Nuitka_FrameObject *cache_frame_6d6a27fb724517823db8ea9b74462ae0 = NULL;
PyObject *tmp_return_value = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Actual function code.
{
// Tried code:
MAKE_OR_REUSE_FRAME( cache_frame_6d6a27fb724517823db8ea9b74462ae0, codeobj_6d6a27fb724517823db8ea9b74462ae0, module_telegram$files$file, sizeof(void *)+sizeof(void *) );
frame_6d6a27fb724517823db8ea9b74462ae0 = cache_frame_6d6a27fb724517823db8ea9b74462ae0;
// Push the new frame as the currently active one.
pushFrameStack( frame_6d6a27fb724517823db8ea9b74462ae0 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_6d6a27fb724517823db8ea9b74462ae0 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_assattr_name_1;
PyObject *tmp_assattr_target_1;
CHECK_OBJECT( par_credentials );
tmp_assattr_name_1 = par_credentials;
CHECK_OBJECT( par_self );
tmp_assattr_target_1 = par_self;
tmp_result = SET_ATTRIBUTE( tmp_assattr_target_1, const_str_plain__credentials, tmp_assattr_name_1 );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 155;
type_description_1 = "oo";
goto frame_exception_exit_1;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_6d6a27fb724517823db8ea9b74462ae0 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_6d6a27fb724517823db8ea9b74462ae0 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_6d6a27fb724517823db8ea9b74462ae0, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_6d6a27fb724517823db8ea9b74462ae0->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_6d6a27fb724517823db8ea9b74462ae0, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_6d6a27fb724517823db8ea9b74462ae0,
type_description_1,
par_self,
par_credentials
);
// Release cached frame.
if ( frame_6d6a27fb724517823db8ea9b74462ae0 == cache_frame_6d6a27fb724517823db8ea9b74462ae0 )
{
Py_DECREF( frame_6d6a27fb724517823db8ea9b74462ae0 );
}
cache_frame_6d6a27fb724517823db8ea9b74462ae0 = NULL;
assertFrameObject( frame_6d6a27fb724517823db8ea9b74462ae0 );
// 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$files$file$$$function_6_set_credentials );
return NULL;
// Return handler code:
try_return_handler_1:;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_credentials );
par_credentials = NULL;
}
{
goto function_return_exit;
}
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( par_self );
par_self = NULL;
}
{
Py_XDECREF( par_credentials );
par_credentials = 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$files$file$$$function_6_set_credentials );
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$files$file$$$function_1___init__( PyObject *defaults )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_telegram$files$file$$$function_1___init__,
const_str_plain___init__,
#if PYTHON_VERSION >= 300
const_str_digest_f0ef69052f80f5e22c6cf1bb086ec52d,
#endif
codeobj_dd8d40227c5454f0527cc7a0378346d7,
defaults,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_telegram$files$file,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_2_de_json( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_telegram$files$file$$$function_2_de_json,
const_str_plain_de_json,
#if PYTHON_VERSION >= 300
const_str_digest_3137a89166e2088e2061fef1d5fdf556,
#endif
codeobj_5ecb1fe1fa7c6b931962721e3e6a9513,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_telegram$files$file,
NULL,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_3_download( PyObject *defaults )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_telegram$files$file$$$function_3_download,
const_str_plain_download,
#if PYTHON_VERSION >= 300
const_str_digest_9b07f0ad04e5f8112afb27cfeed4e520,
#endif
codeobj_e5042fc13f3d5f879044b48f39b4218d,
defaults,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_telegram$files$file,
const_str_digest_082936072639d6c8801893ac17f6afb5,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_4__get_encoded_url( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_telegram$files$file$$$function_4__get_encoded_url,
const_str_plain__get_encoded_url,
#if PYTHON_VERSION >= 300
const_str_digest_9af9bee0cf2caabfffda31be3ccd7874,
#endif
codeobj_f63dc0a225326d28a3ac10ddec4fc450,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_telegram$files$file,
const_str_digest_49564f22c3c50b6e5b0cd6ba62a3c575,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_5_download_as_bytearray( PyObject *defaults )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_telegram$files$file$$$function_5_download_as_bytearray,
const_str_plain_download_as_bytearray,
#if PYTHON_VERSION >= 300
const_str_digest_3da2f9094f280f017b41cb31e0307172,
#endif
codeobj_4d6b24bb3de0d474ed7d4413481d4eff,
defaults,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_telegram$files$file,
const_str_digest_b88e225d9ed05a9e29fa161d5e903e8a,
0
);
return (PyObject *)result;
}
static PyObject *MAKE_FUNCTION_telegram$files$file$$$function_6_set_credentials( )
{
struct Nuitka_FunctionObject *result = Nuitka_Function_New(
impl_telegram$files$file$$$function_6_set_credentials,
const_str_plain_set_credentials,
#if PYTHON_VERSION >= 300
const_str_digest_ca72c0ee189d504010e67842e572686b,
#endif
codeobj_6d6a27fb724517823db8ea9b74462ae0,
NULL,
#if PYTHON_VERSION >= 300
NULL,
NULL,
#endif
module_telegram$files$file,
NULL,
0
);
return (PyObject *)result;
}
#if PYTHON_VERSION >= 300
static struct PyModuleDef mdef_telegram$files$file =
{
PyModuleDef_HEAD_INIT,
"telegram.files.file", /* 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$files$file )
{
#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$files$file );
}
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.files.file: 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.files.file: Calling createModuleConstants().");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("telegram.files.file: Calling createModuleCodeObjects().");
#endif
createModuleCodeObjects();
// puts( "in inittelegram$files$file" );
// 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$files$file = Py_InitModule4(
"telegram.files.file", // 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$files$file = PyModule_Create( &mdef_telegram$files$file );
#endif
moduledict_telegram$files$file = MODULE_DICT( module_telegram$files$file );
// Update "__package__" value to what it ought to be.
{
#if 0
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain___name__ );
UPDATE_STRING_DICT1(
moduledict_telegram$files$file,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 300
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (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$files$file,
(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$files$file, (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$files$file,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring( module_name, 0, dot_index )
);
}
#endif
#endif
}
CHECK_OBJECT( module_telegram$files$file );
// 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_fd09e8c5bcacb6a3b56e856f93afd29b, module_telegram$files$file );
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$files$file, (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$files$file, (Nuitka_StringObject *)const_str_plain___builtins__, value );
}
#if PYTHON_VERSION >= 300
UPDATE_STRING_DICT0( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
#endif
#if PYTHON_VERSION >= 340
#if 0
UPDATE_STRING_DICT0( moduledict_telegram$files$file, (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$files$file, (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$files$file, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
Py_DECREF( module_spec_class );
}
#endif
#endif
// Temp variables if any
PyObject *outline_0_var___class__ = NULL;
PyObject *tmp_class_creation_1__bases = NULL;
PyObject *tmp_class_creation_1__bases_orig = NULL;
PyObject *tmp_class_creation_1__class_decl_dict = NULL;
PyObject *tmp_class_creation_1__metaclass = NULL;
PyObject *tmp_class_creation_1__prepared = NULL;
struct Nuitka_FrameObject *frame_f43697bbc126d44ac8f5fa6ee5201ada;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
int tmp_res;
PyObject *tmp_dictdel_dict;
PyObject *tmp_dictdel_key;
bool tmp_result;
PyObject *locals_telegram$files$file_29 = NULL;
PyObject *tmp_dictset_value;
struct Nuitka_FrameObject *frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2;
NUITKA_MAY_BE_UNUSED char const *type_description_2 = NULL;
static struct Nuitka_FrameObject *cache_frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 = NULL;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
PyObject *exception_keeper_type_3;
PyObject *exception_keeper_value_3;
PyTracebackObject *exception_keeper_tb_3;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_3;
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = const_str_digest_707e01eafe111e82e9c8725b37cbf6c7;
UPDATE_STRING_DICT0( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = const_str_digest_4ca21d38262f65efb066e050e2f8f0f1;
UPDATE_STRING_DICT0( moduledict_telegram$files$file, (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$files$file, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
}
// Frame without reuse.
frame_f43697bbc126d44ac8f5fa6ee5201ada = MAKE_MODULE_FRAME( codeobj_f43697bbc126d44ac8f5fa6ee5201ada, module_telegram$files$file );
// Push the new frame as the currently active one, and we should be exclusively
// owning it.
pushFrameStack( frame_f43697bbc126d44ac8f5fa6ee5201ada );
assert( Py_REFCNT( frame_f43697bbc126d44ac8f5fa6ee5201ada ) == 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_base64;
tmp_globals_name_1 = (PyObject *)moduledict_telegram$files$file;
tmp_locals_name_1 = Py_None;
tmp_fromlist_name_1 = const_tuple_str_plain_b64decode_tuple;
tmp_level_name_1 = const_int_0;
frame_f43697bbc126d44ac8f5fa6ee5201ada->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_b64decode );
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$files$file, (Nuitka_StringObject *)const_str_plain_b64decode, tmp_assign_source_4 );
}
{
PyObject *tmp_assign_source_5;
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_digest_e399ba4554180f37de594a6743234f17;
tmp_globals_name_2 = (PyObject *)moduledict_telegram$files$file;
tmp_locals_name_2 = Py_None;
tmp_fromlist_name_2 = const_tuple_str_plain_basename_tuple;
tmp_level_name_2 = const_int_0;
frame_f43697bbc126d44ac8f5fa6ee5201ada->m_frame.f_lineno = 21;
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 = 21;
goto frame_exception_exit_1;
}
tmp_assign_source_5 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_basename );
Py_DECREF( tmp_import_name_from_2 );
if ( tmp_assign_source_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 21;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_basename, tmp_assign_source_5 );
}
{
PyObject *tmp_assign_source_6;
PyObject *tmp_import_name_from_3;
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_digest_0ac0833f32ef9672b68f8e39be86bb39;
tmp_globals_name_3 = (PyObject *)moduledict_telegram$files$file;
tmp_locals_name_3 = Py_None;
tmp_fromlist_name_3 = const_tuple_str_plain_parse_tuple;
tmp_level_name_3 = const_int_0;
frame_f43697bbc126d44ac8f5fa6ee5201ada->m_frame.f_lineno = 23;
tmp_import_name_from_3 = IMPORT_MODULE5( tmp_name_name_3, tmp_globals_name_3, tmp_locals_name_3, tmp_fromlist_name_3, tmp_level_name_3 );
if ( tmp_import_name_from_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 23;
goto frame_exception_exit_1;
}
tmp_assign_source_6 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_parse );
Py_DECREF( tmp_import_name_from_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$files$file, (Nuitka_StringObject *)const_str_plain_urllib_parse, tmp_assign_source_6 );
}
{
PyObject *tmp_assign_source_7;
PyObject *tmp_import_name_from_4;
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_telegram;
tmp_globals_name_4 = (PyObject *)moduledict_telegram$files$file;
tmp_locals_name_4 = Py_None;
tmp_fromlist_name_4 = const_tuple_str_plain_TelegramObject_tuple;
tmp_level_name_4 = const_int_0;
frame_f43697bbc126d44ac8f5fa6ee5201ada->m_frame.f_lineno = 25;
tmp_import_name_from_4 = 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_4 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 25;
goto frame_exception_exit_1;
}
tmp_assign_source_7 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_TelegramObject );
Py_DECREF( tmp_import_name_from_4 );
if ( tmp_assign_source_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 25;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_TelegramObject, tmp_assign_source_7 );
}
{
PyObject *tmp_assign_source_8;
PyObject *tmp_import_name_from_5;
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_digest_43c0fb0efa9c4b95948692adb3786795;
tmp_globals_name_5 = (PyObject *)moduledict_telegram$files$file;
tmp_locals_name_5 = Py_None;
tmp_fromlist_name_5 = const_tuple_str_plain_decrypt_tuple;
tmp_level_name_5 = const_int_0;
frame_f43697bbc126d44ac8f5fa6ee5201ada->m_frame.f_lineno = 26;
tmp_import_name_from_5 = IMPORT_MODULE5( tmp_name_name_5, tmp_globals_name_5, tmp_locals_name_5, tmp_fromlist_name_5, tmp_level_name_5 );
if ( tmp_import_name_from_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 26;
goto frame_exception_exit_1;
}
tmp_assign_source_8 = IMPORT_NAME( tmp_import_name_from_5, const_str_plain_decrypt );
Py_DECREF( tmp_import_name_from_5 );
if ( tmp_assign_source_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 26;
goto frame_exception_exit_1;
}
UPDATE_STRING_DICT1( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_decrypt, tmp_assign_source_8 );
}
{
// Tried code:
{
PyObject *tmp_assign_source_9;
PyObject *tmp_tuple_element_1;
PyObject *tmp_mvar_value_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_TelegramObject );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_TelegramObject );
}
if ( tmp_mvar_value_1 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "TelegramObject" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 29;
goto try_except_handler_1;
}
tmp_tuple_element_1 = tmp_mvar_value_1;
tmp_assign_source_9 = PyTuple_New( 1 );
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_assign_source_9, 0, tmp_tuple_element_1 );
assert( tmp_class_creation_1__bases_orig == NULL );
tmp_class_creation_1__bases_orig = tmp_assign_source_9;
}
{
PyObject *tmp_assign_source_10;
PyObject *tmp_dircall_arg1_1;
CHECK_OBJECT( tmp_class_creation_1__bases_orig );
tmp_dircall_arg1_1 = tmp_class_creation_1__bases_orig;
Py_INCREF( tmp_dircall_arg1_1 );
{
PyObject *dir_call_args[] = {tmp_dircall_arg1_1};
tmp_assign_source_10 = impl___internal__$$$function_1__mro_entries_conversion( dir_call_args );
}
if ( tmp_assign_source_10 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
assert( tmp_class_creation_1__bases == NULL );
tmp_class_creation_1__bases = tmp_assign_source_10;
}
{
PyObject *tmp_assign_source_11;
tmp_assign_source_11 = PyDict_New();
assert( tmp_class_creation_1__class_decl_dict == NULL );
tmp_class_creation_1__class_decl_dict = tmp_assign_source_11;
}
{
PyObject *tmp_assign_source_12;
PyObject *tmp_metaclass_name_1;
nuitka_bool tmp_condition_result_1;
PyObject *tmp_key_name_1;
PyObject *tmp_dict_name_1;
PyObject *tmp_dict_name_2;
PyObject *tmp_key_name_2;
nuitka_bool tmp_condition_result_2;
int tmp_truth_name_1;
PyObject *tmp_type_arg_1;
PyObject *tmp_subscribed_name_1;
PyObject *tmp_subscript_name_1;
PyObject *tmp_bases_name_1;
tmp_key_name_1 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_dict_name_1 = tmp_class_creation_1__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_1, tmp_key_name_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_1;
}
else
{
goto condexpr_false_1;
}
condexpr_true_1:;
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_dict_name_2 = tmp_class_creation_1__class_decl_dict;
tmp_key_name_2 = const_str_plain_metaclass;
tmp_metaclass_name_1 = DICT_GET_ITEM( tmp_dict_name_2, tmp_key_name_2 );
if ( tmp_metaclass_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
goto condexpr_end_1;
condexpr_false_1:;
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_truth_name_1 = CHECK_IF_TRUE( tmp_class_creation_1__bases );
if ( tmp_truth_name_1 == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
tmp_condition_result_2 = tmp_truth_name_1 == 1 ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_2 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_2;
}
else
{
goto condexpr_false_2;
}
condexpr_true_2:;
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_subscribed_name_1 = tmp_class_creation_1__bases;
tmp_subscript_name_1 = const_int_0;
tmp_type_arg_1 = LOOKUP_SUBSCRIPT_CONST( tmp_subscribed_name_1, tmp_subscript_name_1, 0 );
if ( tmp_type_arg_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
tmp_metaclass_name_1 = BUILTIN_TYPE1( tmp_type_arg_1 );
Py_DECREF( tmp_type_arg_1 );
if ( tmp_metaclass_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
goto condexpr_end_2;
condexpr_false_2:;
tmp_metaclass_name_1 = (PyObject *)&PyType_Type;
Py_INCREF( tmp_metaclass_name_1 );
condexpr_end_2:;
condexpr_end_1:;
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_bases_name_1 = tmp_class_creation_1__bases;
tmp_assign_source_12 = SELECT_METACLASS( tmp_metaclass_name_1, tmp_bases_name_1 );
Py_DECREF( tmp_metaclass_name_1 );
if ( tmp_assign_source_12 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
assert( tmp_class_creation_1__metaclass == NULL );
tmp_class_creation_1__metaclass = tmp_assign_source_12;
}
{
nuitka_bool tmp_condition_result_3;
PyObject *tmp_key_name_3;
PyObject *tmp_dict_name_3;
tmp_key_name_3 = const_str_plain_metaclass;
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_dict_name_3 = tmp_class_creation_1__class_decl_dict;
tmp_res = PyDict_Contains( tmp_dict_name_3, tmp_key_name_3 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
tmp_condition_result_3 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_3 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_dictdel_dict = tmp_class_creation_1__class_decl_dict;
tmp_dictdel_key = const_str_plain_metaclass;
tmp_result = DICT_REMOVE_ITEM( tmp_dictdel_dict, tmp_dictdel_key );
if ( tmp_result == false )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
}
branch_no_1:;
}
{
nuitka_bool tmp_condition_result_4;
PyObject *tmp_source_name_1;
CHECK_OBJECT( tmp_class_creation_1__metaclass );
tmp_source_name_1 = tmp_class_creation_1__metaclass;
tmp_res = PyObject_HasAttr( tmp_source_name_1, const_str_plain___prepare__ );
tmp_condition_result_4 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_4 == NUITKA_BOOL_TRUE )
{
goto branch_yes_2;
}
else
{
goto branch_no_2;
}
branch_yes_2:;
{
PyObject *tmp_assign_source_13;
PyObject *tmp_called_name_1;
PyObject *tmp_source_name_2;
PyObject *tmp_args_name_1;
PyObject *tmp_tuple_element_2;
PyObject *tmp_kw_name_1;
CHECK_OBJECT( tmp_class_creation_1__metaclass );
tmp_source_name_2 = tmp_class_creation_1__metaclass;
tmp_called_name_1 = LOOKUP_ATTRIBUTE( tmp_source_name_2, const_str_plain___prepare__ );
if ( tmp_called_name_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
tmp_tuple_element_2 = const_str_plain_File;
tmp_args_name_1 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_2 );
PyTuple_SET_ITEM( tmp_args_name_1, 0, tmp_tuple_element_2 );
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_tuple_element_2 = tmp_class_creation_1__bases;
Py_INCREF( tmp_tuple_element_2 );
PyTuple_SET_ITEM( tmp_args_name_1, 1, tmp_tuple_element_2 );
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_kw_name_1 = tmp_class_creation_1__class_decl_dict;
frame_f43697bbc126d44ac8f5fa6ee5201ada->m_frame.f_lineno = 29;
tmp_assign_source_13 = CALL_FUNCTION( tmp_called_name_1, tmp_args_name_1, tmp_kw_name_1 );
Py_DECREF( tmp_called_name_1 );
Py_DECREF( tmp_args_name_1 );
if ( tmp_assign_source_13 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
assert( tmp_class_creation_1__prepared == NULL );
tmp_class_creation_1__prepared = tmp_assign_source_13;
}
{
nuitka_bool tmp_condition_result_5;
PyObject *tmp_operand_name_1;
PyObject *tmp_source_name_3;
CHECK_OBJECT( tmp_class_creation_1__prepared );
tmp_source_name_3 = tmp_class_creation_1__prepared;
tmp_res = PyObject_HasAttr( tmp_source_name_3, const_str_plain___getitem__ );
tmp_operand_name_1 = ( tmp_res != 0 ) ? Py_True : Py_False;
tmp_res = CHECK_IF_TRUE( tmp_operand_name_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
tmp_condition_result_5 = ( tmp_res == 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_5 == NUITKA_BOOL_TRUE )
{
goto branch_yes_3;
}
else
{
goto branch_no_3;
}
branch_yes_3:;
{
PyObject *tmp_raise_type_1;
PyObject *tmp_raise_value_1;
PyObject *tmp_left_name_1;
PyObject *tmp_right_name_1;
PyObject *tmp_tuple_element_3;
PyObject *tmp_getattr_target_1;
PyObject *tmp_getattr_attr_1;
PyObject *tmp_getattr_default_1;
PyObject *tmp_source_name_4;
PyObject *tmp_type_arg_2;
tmp_raise_type_1 = PyExc_TypeError;
tmp_left_name_1 = const_str_digest_75fd71b1edada749c2ef7ac810062295;
CHECK_OBJECT( tmp_class_creation_1__metaclass );
tmp_getattr_target_1 = tmp_class_creation_1__metaclass;
tmp_getattr_attr_1 = const_str_plain___name__;
tmp_getattr_default_1 = const_str_angle_metaclass;
tmp_tuple_element_3 = BUILTIN_GETATTR( tmp_getattr_target_1, tmp_getattr_attr_1, tmp_getattr_default_1 );
if ( tmp_tuple_element_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
tmp_right_name_1 = PyTuple_New( 2 );
PyTuple_SET_ITEM( tmp_right_name_1, 0, tmp_tuple_element_3 );
CHECK_OBJECT( tmp_class_creation_1__prepared );
tmp_type_arg_2 = tmp_class_creation_1__prepared;
tmp_source_name_4 = BUILTIN_TYPE1( tmp_type_arg_2 );
assert( !(tmp_source_name_4 == NULL) );
tmp_tuple_element_3 = LOOKUP_ATTRIBUTE( tmp_source_name_4, const_str_plain___name__ );
Py_DECREF( tmp_source_name_4 );
if ( tmp_tuple_element_3 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
Py_DECREF( tmp_right_name_1 );
exception_lineno = 29;
goto try_except_handler_1;
}
PyTuple_SET_ITEM( tmp_right_name_1, 1, tmp_tuple_element_3 );
tmp_raise_value_1 = BINARY_OPERATION_REMAINDER( tmp_left_name_1, tmp_right_name_1 );
Py_DECREF( tmp_right_name_1 );
if ( tmp_raise_value_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_1;
}
exception_type = tmp_raise_type_1;
Py_INCREF( tmp_raise_type_1 );
exception_value = tmp_raise_value_1;
exception_lineno = 29;
RAISE_EXCEPTION_IMPLICIT( &exception_type, &exception_value, &exception_tb );
goto try_except_handler_1;
}
branch_no_3:;
}
goto branch_end_2;
branch_no_2:;
{
PyObject *tmp_assign_source_14;
tmp_assign_source_14 = PyDict_New();
assert( tmp_class_creation_1__prepared == NULL );
tmp_class_creation_1__prepared = tmp_assign_source_14;
}
branch_end_2:;
}
{
PyObject *tmp_assign_source_15;
{
PyObject *tmp_set_locals_1;
CHECK_OBJECT( tmp_class_creation_1__prepared );
tmp_set_locals_1 = tmp_class_creation_1__prepared;
locals_telegram$files$file_29 = tmp_set_locals_1;
Py_INCREF( tmp_set_locals_1 );
}
{
// Tried code:
{
// Tried code:
{
tmp_dictset_value = const_str_digest_fd09e8c5bcacb6a3b56e856f93afd29b;
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain___module__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_3;
}
}
{
tmp_dictset_value = const_str_digest_66f0f1519b5e328b7dd84406821e3ef0;
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain___doc__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_3;
}
}
{
tmp_dictset_value = const_str_plain_File;
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain___qualname__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_3;
}
}
MAKE_OR_REUSE_FRAME( cache_frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2, codeobj_f1ccdc3ba5fa868c2edd130cec3fe1a2, module_telegram$files$file, sizeof(void *) );
frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 = cache_frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2;
// Push the new frame as the currently active one.
pushFrameStack( frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 );
// Mark the frame object as in use, ref count 1 will be up for reuse.
assert( Py_REFCNT( frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 ) == 2 ); // Frame stack
// Framed code:
{
PyObject *tmp_defaults_1;
tmp_defaults_1 = const_tuple_none_none_none_tuple;
Py_INCREF( tmp_defaults_1 );
tmp_dictset_value = MAKE_FUNCTION_telegram$files$file$$$function_1___init__( tmp_defaults_1 );
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain___init__, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 56;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
nuitka_bool tmp_condition_result_6;
PyObject *tmp_called_name_2;
PyObject *tmp_args_element_name_1;
PyObject *tmp_classmethod_arg_1;
tmp_res = MAPPING_HAS_ITEM( locals_telegram$files$file_29, const_str_plain_classmethod );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 69;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_condition_result_6 = ( tmp_res == 1 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_6 == NUITKA_BOOL_TRUE )
{
goto condexpr_true_3;
}
else
{
goto condexpr_false_3;
}
condexpr_true_3:;
tmp_called_name_2 = PyObject_GetItem( locals_telegram$files$file_29, const_str_plain_classmethod );
if ( tmp_called_name_2 == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED() )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "classmethod" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 69;
type_description_2 = "o";
goto frame_exception_exit_2;
}
if ( tmp_called_name_2 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 69;
type_description_2 = "o";
goto frame_exception_exit_2;
}
tmp_args_element_name_1 = MAKE_FUNCTION_telegram$files$file$$$function_2_de_json( );
frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2->m_frame.f_lineno = 69;
{
PyObject *call_args[] = { tmp_args_element_name_1 };
tmp_dictset_value = CALL_FUNCTION_WITH_ARGS1( tmp_called_name_2, call_args );
}
Py_DECREF( tmp_called_name_2 );
Py_DECREF( tmp_args_element_name_1 );
if ( tmp_dictset_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 69;
type_description_2 = "o";
goto frame_exception_exit_2;
}
goto condexpr_end_3;
condexpr_false_3:;
tmp_classmethod_arg_1 = MAKE_FUNCTION_telegram$files$file$$$function_2_de_json( );
tmp_dictset_value = BUILTIN_CLASSMETHOD( tmp_classmethod_arg_1 );
Py_DECREF( tmp_classmethod_arg_1 );
if ( tmp_dictset_value == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 69;
type_description_2 = "o";
goto frame_exception_exit_2;
}
condexpr_end_3:;
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain_de_json, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 69;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
PyObject *tmp_defaults_2;
tmp_defaults_2 = const_tuple_none_none_none_tuple;
Py_INCREF( tmp_defaults_2 );
tmp_dictset_value = MAKE_FUNCTION_telegram$files$file$$$function_3_download( tmp_defaults_2 );
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain_download, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 76;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
tmp_dictset_value = MAKE_FUNCTION_telegram$files$file$$$function_4__get_encoded_url( );
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain__get_encoded_url, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 131;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
PyObject *tmp_defaults_3;
tmp_defaults_3 = const_tuple_none_tuple;
Py_INCREF( tmp_defaults_3 );
tmp_dictset_value = MAKE_FUNCTION_telegram$files$file$$$function_5_download_as_bytearray( tmp_defaults_3 );
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain_download_as_bytearray, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 137;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
{
tmp_dictset_value = MAKE_FUNCTION_telegram$files$file$$$function_6_set_credentials( );
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain_set_credentials, tmp_dictset_value );
Py_DECREF( tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 154;
type_description_2 = "o";
goto frame_exception_exit_2;
}
}
#if 0
RESTORE_FRAME_EXCEPTION( frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 );
#endif
// Put the previous frame back on top.
popFrameStack();
goto frame_no_exception_1;
frame_exception_exit_2:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2, exception_lineno );
}
// Attachs locals to frame if any.
Nuitka_Frame_AttachLocals(
(struct Nuitka_FrameObject *)frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2,
type_description_2,
outline_0_var___class__
);
// Release cached frame.
if ( frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 == cache_frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 )
{
Py_DECREF( frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 );
}
cache_frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 = NULL;
assertFrameObject( frame_f1ccdc3ba5fa868c2edd130cec3fe1a2_2 );
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto nested_frame_exit_1;
frame_no_exception_1:;
goto skip_nested_handling_1;
nested_frame_exit_1:;
goto try_except_handler_3;
skip_nested_handling_1:;
{
nuitka_bool tmp_condition_result_7;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_compexpr_left_1 = tmp_class_creation_1__bases;
CHECK_OBJECT( tmp_class_creation_1__bases_orig );
tmp_compexpr_right_1 = tmp_class_creation_1__bases_orig;
tmp_res = RICH_COMPARE_BOOL_NE( tmp_compexpr_left_1, tmp_compexpr_right_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_3;
}
tmp_condition_result_7 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_7 == NUITKA_BOOL_TRUE )
{
goto branch_yes_4;
}
else
{
goto branch_no_4;
}
branch_yes_4:;
{
CHECK_OBJECT( tmp_class_creation_1__bases_orig );
tmp_dictset_value = tmp_class_creation_1__bases_orig;
tmp_res = PyObject_SetItem( locals_telegram$files$file_29, const_str_plain___orig_bases__, tmp_dictset_value );
if ( tmp_res != 0 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_3;
}
}
branch_no_4:;
}
{
PyObject *tmp_assign_source_16;
PyObject *tmp_called_name_3;
PyObject *tmp_args_name_2;
PyObject *tmp_tuple_element_4;
PyObject *tmp_kw_name_2;
CHECK_OBJECT( tmp_class_creation_1__metaclass );
tmp_called_name_3 = tmp_class_creation_1__metaclass;
tmp_tuple_element_4 = const_str_plain_File;
tmp_args_name_2 = PyTuple_New( 3 );
Py_INCREF( tmp_tuple_element_4 );
PyTuple_SET_ITEM( tmp_args_name_2, 0, tmp_tuple_element_4 );
CHECK_OBJECT( tmp_class_creation_1__bases );
tmp_tuple_element_4 = tmp_class_creation_1__bases;
Py_INCREF( tmp_tuple_element_4 );
PyTuple_SET_ITEM( tmp_args_name_2, 1, tmp_tuple_element_4 );
tmp_tuple_element_4 = locals_telegram$files$file_29;
Py_INCREF( tmp_tuple_element_4 );
PyTuple_SET_ITEM( tmp_args_name_2, 2, tmp_tuple_element_4 );
CHECK_OBJECT( tmp_class_creation_1__class_decl_dict );
tmp_kw_name_2 = tmp_class_creation_1__class_decl_dict;
frame_f43697bbc126d44ac8f5fa6ee5201ada->m_frame.f_lineno = 29;
tmp_assign_source_16 = CALL_FUNCTION( tmp_called_name_3, tmp_args_name_2, tmp_kw_name_2 );
Py_DECREF( tmp_args_name_2 );
if ( tmp_assign_source_16 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 29;
goto try_except_handler_3;
}
assert( outline_0_var___class__ == NULL );
outline_0_var___class__ = tmp_assign_source_16;
}
{
CHECK_OBJECT( outline_0_var___class__ );
tmp_assign_source_15 = outline_0_var___class__;
Py_INCREF( tmp_assign_source_15 );
goto try_return_handler_3;
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( telegram$files$file );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_3:;
{
Py_DECREF( locals_telegram$files$file_29 );
locals_telegram$files$file_29 = NULL;
}
{
goto try_return_handler_2;
}
// Exception handler code:
try_except_handler_3:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_DECREF( locals_telegram$files$file_29 );
locals_telegram$files$file_29 = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto try_except_handler_2;
}
// End of try:
}
// tried codes exits in all cases
NUITKA_CANNOT_GET_HERE( telegram$files$file );
return MOD_RETURN_VALUE( NULL );
// Return handler code:
try_return_handler_2:;
{
CHECK_OBJECT( (PyObject *)outline_0_var___class__ );
Py_DECREF( outline_0_var___class__ );
outline_0_var___class__ = NULL;
}
{
goto outline_result_1;
}
// Exception handler code:
try_except_handler_2:;
exception_keeper_type_2 = exception_type;
exception_keeper_value_2 = exception_value;
exception_keeper_tb_2 = exception_tb;
exception_keeper_lineno_2 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
// Re-raise.
exception_type = exception_keeper_type_2;
exception_value = exception_keeper_value_2;
exception_tb = exception_keeper_tb_2;
exception_lineno = exception_keeper_lineno_2;
goto outline_exception_1;
}
// End of try:
}
// Return statement must have exited already.
NUITKA_CANNOT_GET_HERE( telegram$files$file );
return MOD_RETURN_VALUE( NULL );
outline_exception_1:;
exception_lineno = 29;
goto try_except_handler_1;
outline_result_1:;
UPDATE_STRING_DICT1( moduledict_telegram$files$file, (Nuitka_StringObject *)const_str_plain_File, tmp_assign_source_15 );
}
goto try_end_1;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_3 = exception_type;
exception_keeper_value_3 = exception_value;
exception_keeper_tb_3 = exception_tb;
exception_keeper_lineno_3 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
Py_XDECREF( tmp_class_creation_1__bases );
tmp_class_creation_1__bases = NULL;
}
{
Py_XDECREF( tmp_class_creation_1__class_decl_dict );
tmp_class_creation_1__class_decl_dict = NULL;
}
{
Py_XDECREF( tmp_class_creation_1__metaclass );
tmp_class_creation_1__metaclass = NULL;
}
{
Py_XDECREF( tmp_class_creation_1__prepared );
tmp_class_creation_1__prepared = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_3;
exception_value = exception_keeper_value_3;
exception_tb = exception_keeper_tb_3;
exception_lineno = exception_keeper_lineno_3;
goto frame_exception_exit_1;
}
// End of try:
try_end_1:;
}
// Restore frame exception if necessary.
#if 0
RESTORE_FRAME_EXCEPTION( frame_f43697bbc126d44ac8f5fa6ee5201ada );
#endif
popFrameStack();
assertFrameObject( frame_f43697bbc126d44ac8f5fa6ee5201ada );
goto frame_no_exception_2;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_f43697bbc126d44ac8f5fa6ee5201ada );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_f43697bbc126d44ac8f5fa6ee5201ada, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_f43697bbc126d44ac8f5fa6ee5201ada->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_f43697bbc126d44ac8f5fa6ee5201ada, exception_lineno );
}
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto module_exception_exit;
frame_no_exception_2:;
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__bases );
Py_DECREF( tmp_class_creation_1__bases );
tmp_class_creation_1__bases = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__class_decl_dict );
Py_DECREF( tmp_class_creation_1__class_decl_dict );
tmp_class_creation_1__class_decl_dict = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__metaclass );
Py_DECREF( tmp_class_creation_1__metaclass );
tmp_class_creation_1__metaclass = NULL;
}
{
CHECK_OBJECT( (PyObject *)tmp_class_creation_1__prepared );
Py_DECREF( tmp_class_creation_1__prepared );
tmp_class_creation_1__prepared = NULL;
}
return MOD_RETURN_VALUE( module_telegram$files$file );
module_exception_exit:
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return MOD_RETURN_VALUE( NULL );
}