Remove trash

This commit is contained in:
Alexandr Bogomyakov
2019-12-26 16:41:57 +03:00
parent ab7aef8da7
commit 6ab5e06c5e
735 changed files with 1 additions and 4604745 deletions
+1
View File
@@ -1,5 +1,6 @@
# configs
creds.ini
baraban.build/
tg_settings.py
*.swp
*.swo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
-42
View File
@@ -1,42 +0,0 @@
// This provides the frozen (compiled bytecode) files that are included if
// any.
#include <Python.h>
#include "nuitka/constants_blob.h"
// Blob from which modules are unstreamed.
#define stream_data constant_bin
// These modules should be loaded as bytecode. They may e.g. have to be loadable
// during "Py_Initialize" already, or for irrelevance, they are only included
// in this un-optimized form. These are not compiled by Nuitka, and therefore
// are not accelerated at all, merely bundled with the binary or module, so
// that CPython library can start out finding them.
struct frozen_desc {
char const *name;
ssize_t start;
int size;
};
void copyFrozenModulesTo( struct _frozen *destination )
{
struct frozen_desc frozen_modules[] = {
{ NULL, 0, 0 }
};
struct frozen_desc *current = frozen_modules;
for(;;)
{
destination->name = (char *)current->name;
destination->code = (unsigned char *)&constant_bin[ current->start ];
destination->size = current->size;
if (destination->name == NULL) break;
current += 1;
destination += 1;
};
}
Binary file not shown.
File diff suppressed because it is too large Load Diff
-18
View File
@@ -1,18 +0,0 @@
#ifndef __NUITKA_CALLS_H__
#define __NUITKA_CALLS_H__
extern PyObject *CALL_FUNCTION_WITH_ARGS1( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS2( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS3( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS4( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS5( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS6( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS7( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS8( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS9( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS10( PyObject *called, PyObject **args );
extern PyObject *CALL_FUNCTION_WITH_ARGS16( PyObject *called, PyObject **args );
extern PyObject *CALL_METHOD_WITH_ARGS1( PyObject *source, PyObject *attr_name, PyObject **args );
extern PyObject *CALL_METHOD_WITH_ARGS2( PyObject *source, PyObject *attr_name, PyObject **args );
extern PyObject *CALL_METHOD_WITH_ARGS3( PyObject *source, PyObject *attr_name, PyObject **args );
#endif
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
-354
View File
@@ -1,354 +0,0 @@
/* Generated code for Python source for module 'asn1crypto._perf'
* 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_asn1crypto$_perf 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_asn1crypto$_perf;
PyDictObject *moduledict_asn1crypto$_perf;
/* The module constants used, if any. */
static PyObject *const_list_str_digest_e2eb296392448e656aff1f5ad82f92f2_list;
extern PyObject *const_str_plain___file__;
static PyObject *const_str_digest_332c4dc79ce6edaa99c93dc635ad2b8c;
extern PyObject *const_str_plain___path__;
static PyObject *const_str_digest_e2eb296392448e656aff1f5ad82f92f2;
extern PyObject *const_str_plain___doc__;
extern PyObject *const_str_plain___cached__;
static PyObject *const_str_digest_eb11d3d7daa65b729cf0d978409d43af;
static bool constants_created = false;
static void createModuleConstants( void )
{
const_list_str_digest_e2eb296392448e656aff1f5ad82f92f2_list = PyList_New( 1 );
const_str_digest_e2eb296392448e656aff1f5ad82f92f2 = UNSTREAM_STRING( &constant_bin[ 12840 ], 49, 0 );
PyList_SET_ITEM( const_list_str_digest_e2eb296392448e656aff1f5ad82f92f2_list, 0, const_str_digest_e2eb296392448e656aff1f5ad82f92f2 ); Py_INCREF( const_str_digest_e2eb296392448e656aff1f5ad82f92f2 );
const_str_digest_332c4dc79ce6edaa99c93dc635ad2b8c = UNSTREAM_STRING( &constant_bin[ 12889 ], 16, 0 );
const_str_digest_eb11d3d7daa65b729cf0d978409d43af = UNSTREAM_STRING( &constant_bin[ 12905 ], 61, 0 );
constants_created = true;
}
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_asn1crypto$_perf( void )
{
// The module may not have been used at all.
if (constants_created == false) return;
}
#endif
// The module code objects.
static void createModuleCodeObjects(void)
{
}
// The module function declarations.
// The module function definitions.
#if PYTHON_VERSION >= 300
static struct PyModuleDef mdef_asn1crypto$_perf =
{
PyModuleDef_HEAD_INIT,
"asn1crypto._perf", /* 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( asn1crypto$_perf )
{
#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_asn1crypto$_perf );
}
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("asn1crypto._perf: 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("asn1crypto._perf: Calling createModuleConstants().");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("asn1crypto._perf: Calling createModuleCodeObjects().");
#endif
createModuleCodeObjects();
// puts( "in initasn1crypto$_perf" );
// 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_asn1crypto$_perf = Py_InitModule4(
"asn1crypto._perf", // 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_asn1crypto$_perf = PyModule_Create( &mdef_asn1crypto$_perf );
#endif
moduledict_asn1crypto$_perf = MODULE_DICT( module_asn1crypto$_perf );
// Update "__package__" value to what it ought to be.
{
#if 1
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_asn1crypto$_perf, (Nuitka_StringObject *)const_str_plain___name__ );
UPDATE_STRING_DICT1(
moduledict_asn1crypto$_perf,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 300
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_asn1crypto$_perf, (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_asn1crypto$_perf,
(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_asn1crypto$_perf, (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_asn1crypto$_perf,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring( module_name, 0, dot_index )
);
}
#endif
#endif
}
CHECK_OBJECT( module_asn1crypto$_perf );
// 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_332c4dc79ce6edaa99c93dc635ad2b8c, module_asn1crypto$_perf );
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_asn1crypto$_perf, (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_asn1crypto$_perf, (Nuitka_StringObject *)const_str_plain___builtins__, value );
}
#if PYTHON_VERSION >= 300
UPDATE_STRING_DICT0( moduledict_asn1crypto$_perf, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
#endif
#if PYTHON_VERSION >= 340
#if 0
UPDATE_STRING_DICT0( moduledict_asn1crypto$_perf, (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_asn1crypto$_perf, (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_asn1crypto$_perf, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
Py_DECREF( module_spec_class );
}
#endif
#endif
// Temp variables if any
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = Py_None;
UPDATE_STRING_DICT0( moduledict_asn1crypto$_perf, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = const_str_digest_eb11d3d7daa65b729cf0d978409d43af;
UPDATE_STRING_DICT0( moduledict_asn1crypto$_perf, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 );
}
{
PyObject *tmp_assign_source_3;
tmp_assign_source_3 = LIST_COPY( const_list_str_digest_e2eb296392448e656aff1f5ad82f92f2_list );
UPDATE_STRING_DICT1( moduledict_asn1crypto$_perf, (Nuitka_StringObject *)const_str_plain___path__, tmp_assign_source_3 );
}
{
PyObject *tmp_assign_source_4;
tmp_assign_source_4 = Py_None;
UPDATE_STRING_DICT0( moduledict_asn1crypto$_perf, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_4 );
}
return MOD_RETURN_VALUE( module_asn1crypto$_perf );
}
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
-694
View File
@@ -1,694 +0,0 @@
/* Generated code for Python source for module 'asn1crypto'
* 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_asn1crypto 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_asn1crypto;
PyDictObject *moduledict_asn1crypto;
/* The module constants used, if any. */
static PyObject *const_list_str_plain___version___str_plain___version_info___list;
extern PyObject *const_str_plain_unicode_literals;
extern PyObject *const_str_plain___version_info__;
static PyObject *const_str_digest_43370242bc8b91dfb3bcfea4f5571290;
extern PyObject *const_str_plain___all__;
extern PyObject *const_int_pos_1;
extern PyObject *const_str_plain___file__;
extern PyObject *const_str_plain___version__;
static PyObject *const_tuple_str_plain___version___str_plain___version_info___tuple;
extern PyObject *const_str_plain_division;
static PyObject *const_list_str_digest_d00ed81ade84de5246f966bcfe6c4a10_list;
extern PyObject *const_str_plain___doc__;
static PyObject *const_str_digest_d3f736d24da8b4d682f6bf78dc051281;
extern PyObject *const_str_plain___path__;
static PyObject *const_str_digest_d00ed81ade84de5246f966bcfe6c4a10;
extern PyObject *const_tuple_empty;
static PyObject *const_str_plain_asn1crypto;
extern PyObject *const_str_plain_version;
extern PyObject *const_str_plain_absolute_import;
extern PyObject *const_str_plain___cached__;
extern PyObject *const_str_plain_print_function;
static PyObject *module_filename_obj;
static bool constants_created = false;
static void createModuleConstants( void )
{
const_list_str_plain___version___str_plain___version_info___list = PyList_New( 2 );
PyList_SET_ITEM( const_list_str_plain___version___str_plain___version_info___list, 0, const_str_plain___version__ ); Py_INCREF( const_str_plain___version__ );
PyList_SET_ITEM( const_list_str_plain___version___str_plain___version_info___list, 1, const_str_plain___version_info__ ); Py_INCREF( const_str_plain___version_info__ );
const_str_digest_43370242bc8b91dfb3bcfea4f5571290 = UNSTREAM_STRING( &constant_bin[ 1355 ], 55, 0 );
const_tuple_str_plain___version___str_plain___version_info___tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_str_plain___version___str_plain___version_info___tuple, 0, const_str_plain___version__ ); Py_INCREF( const_str_plain___version__ );
PyTuple_SET_ITEM( const_tuple_str_plain___version___str_plain___version_info___tuple, 1, const_str_plain___version_info__ ); Py_INCREF( const_str_plain___version_info__ );
const_list_str_digest_d00ed81ade84de5246f966bcfe6c4a10_list = PyList_New( 1 );
const_str_digest_d00ed81ade84de5246f966bcfe6c4a10 = UNSTREAM_STRING( &constant_bin[ 1355 ], 43, 0 );
PyList_SET_ITEM( const_list_str_digest_d00ed81ade84de5246f966bcfe6c4a10_list, 0, const_str_digest_d00ed81ade84de5246f966bcfe6c4a10 ); Py_INCREF( const_str_digest_d00ed81ade84de5246f966bcfe6c4a10 );
const_str_digest_d3f736d24da8b4d682f6bf78dc051281 = UNSTREAM_STRING( &constant_bin[ 1410 ], 19, 0 );
const_str_plain_asn1crypto = UNSTREAM_STRING( &constant_bin[ 1388 ], 10, 1 );
constants_created = true;
}
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_asn1crypto( void )
{
// The module may not have been used at all.
if (constants_created == false) return;
}
#endif
// The module code objects.
static PyCodeObject *codeobj_9ab513b9b87ad1aa2979912b93593b6d;
static void createModuleCodeObjects(void)
{
module_filename_obj = const_str_digest_43370242bc8b91dfb3bcfea4f5571290;
codeobj_9ab513b9b87ad1aa2979912b93593b6d = MAKE_CODEOBJ( module_filename_obj, const_str_digest_d3f736d24da8b4d682f6bf78dc051281, 1, const_tuple_empty, 0, 0, CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
}
// The module function declarations.
// The module function definitions.
#if PYTHON_VERSION >= 300
static struct PyModuleDef mdef_asn1crypto =
{
PyModuleDef_HEAD_INIT,
"asn1crypto", /* 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( asn1crypto )
{
#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_asn1crypto );
}
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("asn1crypto: 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("asn1crypto: Calling createModuleConstants().");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("asn1crypto: Calling createModuleCodeObjects().");
#endif
createModuleCodeObjects();
// puts( "in initasn1crypto" );
// 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_asn1crypto = Py_InitModule4(
"asn1crypto", // 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_asn1crypto = PyModule_Create( &mdef_asn1crypto );
#endif
moduledict_asn1crypto = MODULE_DICT( module_asn1crypto );
// Update "__package__" value to what it ought to be.
{
#if 1
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain___name__ );
UPDATE_STRING_DICT1(
moduledict_asn1crypto,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 300
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_asn1crypto, (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_asn1crypto,
(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_asn1crypto, (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_asn1crypto,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring( module_name, 0, dot_index )
);
}
#endif
#endif
}
CHECK_OBJECT( module_asn1crypto );
// Seems to work for Python2.7 out of the box, but for Python3, the module
// doesn't automatically enter "sys.modules", so do it manually.
#if PYTHON_VERSION >= 300
{
int r = PyObject_SetItem( PySys_GetObject( (char *)"modules" ), const_str_plain_asn1crypto, module_asn1crypto );
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_asn1crypto, (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_asn1crypto, (Nuitka_StringObject *)const_str_plain___builtins__, value );
}
#if PYTHON_VERSION >= 300
UPDATE_STRING_DICT0( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
#endif
#if PYTHON_VERSION >= 340
#if 0
UPDATE_STRING_DICT0( moduledict_asn1crypto, (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_asn1crypto, (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_asn1crypto, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
Py_DECREF( module_spec_class );
}
#endif
#endif
// Temp variables if any
PyObject *tmp_import_from_1__module = NULL;
PyObject *tmp_import_from_2__module = NULL;
struct Nuitka_FrameObject *frame_9ab513b9b87ad1aa2979912b93593b6d;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
PyObject *exception_keeper_type_2;
PyObject *exception_keeper_value_2;
PyTracebackObject *exception_keeper_tb_2;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_2;
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = Py_None;
UPDATE_STRING_DICT0( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = const_str_digest_43370242bc8b91dfb3bcfea4f5571290;
UPDATE_STRING_DICT0( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 );
}
{
PyObject *tmp_assign_source_3;
tmp_assign_source_3 = LIST_COPY( const_list_str_digest_d00ed81ade84de5246f966bcfe6c4a10_list );
UPDATE_STRING_DICT1( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain___path__, tmp_assign_source_3 );
}
{
PyObject *tmp_assign_source_4;
tmp_assign_source_4 = Py_None;
UPDATE_STRING_DICT0( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_4 );
}
{
PyObject *tmp_assign_source_5;
tmp_assign_source_5 = PyImport_ImportModule("__future__");
assert( !(tmp_assign_source_5 == NULL) );
assert( tmp_import_from_1__module == NULL );
Py_INCREF( tmp_assign_source_5 );
tmp_import_from_1__module = tmp_assign_source_5;
}
// Frame without reuse.
frame_9ab513b9b87ad1aa2979912b93593b6d = MAKE_MODULE_FRAME( codeobj_9ab513b9b87ad1aa2979912b93593b6d, module_asn1crypto );
// Push the new frame as the currently active one, and we should be exclusively
// owning it.
pushFrameStack( frame_9ab513b9b87ad1aa2979912b93593b6d );
assert( Py_REFCNT( frame_9ab513b9b87ad1aa2979912b93593b6d ) == 2 );
// Framed code:
{
// Tried code:
{
PyObject *tmp_assign_source_6;
PyObject *tmp_import_name_from_1;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_1 = tmp_import_from_1__module;
tmp_assign_source_6 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_unicode_literals );
if ( tmp_assign_source_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 2;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain_unicode_literals, tmp_assign_source_6 );
}
{
PyObject *tmp_assign_source_7;
PyObject *tmp_import_name_from_2;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_2 = tmp_import_from_1__module;
tmp_assign_source_7 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_division );
if ( tmp_assign_source_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 2;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain_division, tmp_assign_source_7 );
}
{
PyObject *tmp_assign_source_8;
PyObject *tmp_import_name_from_3;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_3 = tmp_import_from_1__module;
tmp_assign_source_8 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_absolute_import );
if ( tmp_assign_source_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 2;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain_absolute_import, tmp_assign_source_8 );
}
{
PyObject *tmp_assign_source_9;
PyObject *tmp_import_name_from_4;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_4 = tmp_import_from_1__module;
tmp_assign_source_9 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_print_function );
if ( tmp_assign_source_9 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 2;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain_print_function, tmp_assign_source_9 );
}
goto try_end_1;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
Py_DECREF( tmp_import_from_1__module );
tmp_import_from_1__module = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto frame_exception_exit_1;
}
// End of try:
try_end_1:;
}
{
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
Py_DECREF( tmp_import_from_1__module );
tmp_import_from_1__module = NULL;
}
{
PyObject *tmp_assign_source_10;
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_version;
tmp_globals_name_1 = (PyObject *)moduledict_asn1crypto;
tmp_locals_name_1 = Py_None;
tmp_fromlist_name_1 = const_tuple_str_plain___version___str_plain___version_info___tuple;
tmp_level_name_1 = const_int_pos_1;
frame_9ab513b9b87ad1aa2979912b93593b6d->m_frame.f_lineno = 4;
tmp_assign_source_10 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 );
if ( tmp_assign_source_10 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 4;
goto frame_exception_exit_1;
}
assert( tmp_import_from_2__module == NULL );
tmp_import_from_2__module = tmp_assign_source_10;
}
{
// Tried code:
{
PyObject *tmp_assign_source_11;
PyObject *tmp_import_name_from_5;
CHECK_OBJECT( tmp_import_from_2__module );
tmp_import_name_from_5 = tmp_import_from_2__module;
if ( PyModule_Check( tmp_import_name_from_5 ) )
{
tmp_assign_source_11 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_5,
(PyObject *)MODULE_DICT(tmp_import_name_from_5),
const_str_plain___version__,
const_int_pos_1
);
}
else
{
tmp_assign_source_11 = IMPORT_NAME( tmp_import_name_from_5, const_str_plain___version__ );
}
if ( tmp_assign_source_11 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 4;
goto try_except_handler_2;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain___version__, tmp_assign_source_11 );
}
{
PyObject *tmp_assign_source_12;
PyObject *tmp_import_name_from_6;
CHECK_OBJECT( tmp_import_from_2__module );
tmp_import_name_from_6 = tmp_import_from_2__module;
if ( PyModule_Check( tmp_import_name_from_6 ) )
{
tmp_assign_source_12 = IMPORT_NAME_OR_MODULE(
tmp_import_name_from_6,
(PyObject *)MODULE_DICT(tmp_import_name_from_6),
const_str_plain___version_info__,
const_int_pos_1
);
}
else
{
tmp_assign_source_12 = IMPORT_NAME( tmp_import_name_from_6, const_str_plain___version_info__ );
}
if ( tmp_assign_source_12 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 4;
goto try_except_handler_2;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain___version_info__, tmp_assign_source_12 );
}
goto try_end_2;
// Exception handler code:
try_except_handler_2:;
exception_keeper_type_2 = exception_type;
exception_keeper_value_2 = exception_value;
exception_keeper_tb_2 = exception_tb;
exception_keeper_lineno_2 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
CHECK_OBJECT( (PyObject *)tmp_import_from_2__module );
Py_DECREF( tmp_import_from_2__module );
tmp_import_from_2__module = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_2;
exception_value = exception_keeper_value_2;
exception_tb = exception_keeper_tb_2;
exception_lineno = exception_keeper_lineno_2;
goto frame_exception_exit_1;
}
// End of try:
try_end_2:;
}
// Restore frame exception if necessary.
#if 0
RESTORE_FRAME_EXCEPTION( frame_9ab513b9b87ad1aa2979912b93593b6d );
#endif
popFrameStack();
assertFrameObject( frame_9ab513b9b87ad1aa2979912b93593b6d );
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_9ab513b9b87ad1aa2979912b93593b6d );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_9ab513b9b87ad1aa2979912b93593b6d, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_9ab513b9b87ad1aa2979912b93593b6d->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_9ab513b9b87ad1aa2979912b93593b6d, exception_lineno );
}
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto module_exception_exit;
frame_no_exception_1:;
{
CHECK_OBJECT( (PyObject *)tmp_import_from_2__module );
Py_DECREF( tmp_import_from_2__module );
tmp_import_from_2__module = NULL;
}
{
PyObject *tmp_assign_source_13;
tmp_assign_source_13 = LIST_COPY( const_list_str_plain___version___str_plain___version_info___list );
UPDATE_STRING_DICT1( moduledict_asn1crypto, (Nuitka_StringObject *)const_str_plain___all__, tmp_assign_source_13 );
}
return MOD_RETURN_VALUE( module_asn1crypto );
module_exception_exit:
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return MOD_RETURN_VALUE( NULL );
}
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
-551
View File
@@ -1,551 +0,0 @@
/* Generated code for Python source for module 'asn1crypto.version'
* 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_asn1crypto$version 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_asn1crypto$version;
PyDictObject *moduledict_asn1crypto$version;
/* The module constants used, if any. */
extern PyObject *const_str_plain___file__;
static PyObject *const_tuple_int_0_int_pos_24_int_0_tuple;
extern PyObject *const_str_plain___version__;
static PyObject *const_str_digest_dd461a57581d0cdbf53ca1efe00d30fc;
static PyObject *const_str_digest_f8ce3bb14c65ce78fe2c5c6e01fa5bb1;
extern PyObject *const_str_plain_absolute_import;
extern PyObject *const_int_0;
extern PyObject *const_str_plain_unicode_literals;
extern PyObject *const_str_plain_False;
static PyObject *const_str_digest_94acd1c102ef12af2a2e4a18bb049d47;
extern PyObject *const_str_plain___version_info__;
extern PyObject *const_int_pos_24;
extern PyObject *const_tuple_empty;
extern PyObject *const_str_plain___doc__;
extern PyObject *const_str_plain___cached__;
extern PyObject *const_str_plain_division;
extern PyObject *const_str_plain_print_function;
static PyObject *const_str_digest_fc00e09c7abb84824b988361fd28a669;
static PyObject *module_filename_obj;
static bool constants_created = false;
static void createModuleConstants( void )
{
const_tuple_int_0_int_pos_24_int_0_tuple = PyTuple_New( 3 );
PyTuple_SET_ITEM( const_tuple_int_0_int_pos_24_int_0_tuple, 0, const_int_0 ); Py_INCREF( const_int_0 );
PyTuple_SET_ITEM( const_tuple_int_0_int_pos_24_int_0_tuple, 1, const_int_pos_24 ); Py_INCREF( const_int_pos_24 );
PyTuple_SET_ITEM( const_tuple_int_0_int_pos_24_int_0_tuple, 2, const_int_0 ); Py_INCREF( const_int_0 );
const_str_digest_dd461a57581d0cdbf53ca1efe00d30fc = UNSTREAM_STRING( &constant_bin[ 96546 ], 18, 0 );
const_str_digest_f8ce3bb14c65ce78fe2c5c6e01fa5bb1 = UNSTREAM_STRING( &constant_bin[ 96564 ], 54, 0 );
const_str_digest_94acd1c102ef12af2a2e4a18bb049d47 = UNSTREAM_STRING( &constant_bin[ 96618 ], 6, 0 );
const_str_digest_fc00e09c7abb84824b988361fd28a669 = UNSTREAM_STRING( &constant_bin[ 96624 ], 27, 0 );
constants_created = true;
}
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_asn1crypto$version( void )
{
// The module may not have been used at all.
if (constants_created == false) return;
}
#endif
// The module code objects.
static PyCodeObject *codeobj_f5e5869196d266f6e815d6ec885d2de1;
static void createModuleCodeObjects(void)
{
module_filename_obj = const_str_digest_f8ce3bb14c65ce78fe2c5c6e01fa5bb1;
codeobj_f5e5869196d266f6e815d6ec885d2de1 = MAKE_CODEOBJ( module_filename_obj, const_str_digest_fc00e09c7abb84824b988361fd28a669, 1, const_tuple_empty, 0, 0, CO_NOFREE | CO_FUTURE_UNICODE_LITERALS );
}
// The module function declarations.
// The module function definitions.
#if PYTHON_VERSION >= 300
static struct PyModuleDef mdef_asn1crypto$version =
{
PyModuleDef_HEAD_INIT,
"asn1crypto.version", /* 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( asn1crypto$version )
{
#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_asn1crypto$version );
}
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("asn1crypto.version: 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("asn1crypto.version: Calling createModuleConstants().");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("asn1crypto.version: Calling createModuleCodeObjects().");
#endif
createModuleCodeObjects();
// puts( "in initasn1crypto$version" );
// 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_asn1crypto$version = Py_InitModule4(
"asn1crypto.version", // 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_asn1crypto$version = PyModule_Create( &mdef_asn1crypto$version );
#endif
moduledict_asn1crypto$version = MODULE_DICT( module_asn1crypto$version );
// Update "__package__" value to what it ought to be.
{
#if 0
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_asn1crypto$version, (Nuitka_StringObject *)const_str_plain___name__ );
UPDATE_STRING_DICT1(
moduledict_asn1crypto$version,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 300
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_asn1crypto$version, (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_asn1crypto$version,
(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_asn1crypto$version, (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_asn1crypto$version,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring( module_name, 0, dot_index )
);
}
#endif
#endif
}
CHECK_OBJECT( module_asn1crypto$version );
// 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_dd461a57581d0cdbf53ca1efe00d30fc, module_asn1crypto$version );
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_asn1crypto$version, (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_asn1crypto$version, (Nuitka_StringObject *)const_str_plain___builtins__, value );
}
#if PYTHON_VERSION >= 300
UPDATE_STRING_DICT0( moduledict_asn1crypto$version, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
#endif
#if PYTHON_VERSION >= 340
#if 0
UPDATE_STRING_DICT0( moduledict_asn1crypto$version, (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_asn1crypto$version, (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_asn1crypto$version, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
Py_DECREF( module_spec_class );
}
#endif
#endif
// Temp variables if any
PyObject *tmp_import_from_1__module = NULL;
struct Nuitka_FrameObject *frame_f5e5869196d266f6e815d6ec885d2de1;
NUITKA_MAY_BE_UNUSED char const *type_description_1 = NULL;
PyObject *exception_type = NULL;
PyObject *exception_value = NULL;
PyTracebackObject *exception_tb = NULL;
NUITKA_MAY_BE_UNUSED int exception_lineno = 0;
PyObject *exception_keeper_type_1;
PyObject *exception_keeper_value_1;
PyTracebackObject *exception_keeper_tb_1;
NUITKA_MAY_BE_UNUSED int exception_keeper_lineno_1;
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = Py_None;
UPDATE_STRING_DICT0( moduledict_asn1crypto$version, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = const_str_digest_f8ce3bb14c65ce78fe2c5c6e01fa5bb1;
UPDATE_STRING_DICT0( moduledict_asn1crypto$version, (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_asn1crypto$version, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
}
{
PyObject *tmp_assign_source_4;
tmp_assign_source_4 = PyImport_ImportModule("__future__");
assert( !(tmp_assign_source_4 == NULL) );
assert( tmp_import_from_1__module == NULL );
Py_INCREF( tmp_assign_source_4 );
tmp_import_from_1__module = tmp_assign_source_4;
}
// Frame without reuse.
frame_f5e5869196d266f6e815d6ec885d2de1 = MAKE_MODULE_FRAME( codeobj_f5e5869196d266f6e815d6ec885d2de1, module_asn1crypto$version );
// Push the new frame as the currently active one, and we should be exclusively
// owning it.
pushFrameStack( frame_f5e5869196d266f6e815d6ec885d2de1 );
assert( Py_REFCNT( frame_f5e5869196d266f6e815d6ec885d2de1 ) == 2 );
// Framed code:
{
// Tried code:
{
PyObject *tmp_assign_source_5;
PyObject *tmp_import_name_from_1;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_1 = tmp_import_from_1__module;
tmp_assign_source_5 = IMPORT_NAME( tmp_import_name_from_1, const_str_plain_unicode_literals );
if ( tmp_assign_source_5 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 2;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto$version, (Nuitka_StringObject *)const_str_plain_unicode_literals, tmp_assign_source_5 );
}
{
PyObject *tmp_assign_source_6;
PyObject *tmp_import_name_from_2;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_2 = tmp_import_from_1__module;
tmp_assign_source_6 = IMPORT_NAME( tmp_import_name_from_2, const_str_plain_division );
if ( tmp_assign_source_6 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 2;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto$version, (Nuitka_StringObject *)const_str_plain_division, tmp_assign_source_6 );
}
{
PyObject *tmp_assign_source_7;
PyObject *tmp_import_name_from_3;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_3 = tmp_import_from_1__module;
tmp_assign_source_7 = IMPORT_NAME( tmp_import_name_from_3, const_str_plain_absolute_import );
if ( tmp_assign_source_7 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 2;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto$version, (Nuitka_StringObject *)const_str_plain_absolute_import, tmp_assign_source_7 );
}
{
PyObject *tmp_assign_source_8;
PyObject *tmp_import_name_from_4;
CHECK_OBJECT( tmp_import_from_1__module );
tmp_import_name_from_4 = tmp_import_from_1__module;
tmp_assign_source_8 = IMPORT_NAME( tmp_import_name_from_4, const_str_plain_print_function );
if ( tmp_assign_source_8 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 2;
goto try_except_handler_1;
}
UPDATE_STRING_DICT1( moduledict_asn1crypto$version, (Nuitka_StringObject *)const_str_plain_print_function, tmp_assign_source_8 );
}
goto try_end_1;
// Exception handler code:
try_except_handler_1:;
exception_keeper_type_1 = exception_type;
exception_keeper_value_1 = exception_value;
exception_keeper_tb_1 = exception_tb;
exception_keeper_lineno_1 = exception_lineno;
exception_type = NULL;
exception_value = NULL;
exception_tb = NULL;
exception_lineno = 0;
{
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
Py_DECREF( tmp_import_from_1__module );
tmp_import_from_1__module = NULL;
}
{
// Re-raise.
exception_type = exception_keeper_type_1;
exception_value = exception_keeper_value_1;
exception_tb = exception_keeper_tb_1;
exception_lineno = exception_keeper_lineno_1;
goto frame_exception_exit_1;
}
// End of try:
try_end_1:;
}
// Restore frame exception if necessary.
#if 0
RESTORE_FRAME_EXCEPTION( frame_f5e5869196d266f6e815d6ec885d2de1 );
#endif
popFrameStack();
assertFrameObject( frame_f5e5869196d266f6e815d6ec885d2de1 );
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_f5e5869196d266f6e815d6ec885d2de1 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_f5e5869196d266f6e815d6ec885d2de1, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_f5e5869196d266f6e815d6ec885d2de1->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_f5e5869196d266f6e815d6ec885d2de1, exception_lineno );
}
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto module_exception_exit;
frame_no_exception_1:;
{
CHECK_OBJECT( (PyObject *)tmp_import_from_1__module );
Py_DECREF( tmp_import_from_1__module );
tmp_import_from_1__module = NULL;
}
{
PyObject *tmp_assign_source_9;
tmp_assign_source_9 = const_str_digest_94acd1c102ef12af2a2e4a18bb049d47;
UPDATE_STRING_DICT0( moduledict_asn1crypto$version, (Nuitka_StringObject *)const_str_plain___version__, tmp_assign_source_9 );
}
{
PyObject *tmp_assign_source_10;
tmp_assign_source_10 = const_tuple_int_0_int_pos_24_int_0_tuple;
UPDATE_STRING_DICT0( moduledict_asn1crypto$version, (Nuitka_StringObject *)const_str_plain___version_info__, tmp_assign_source_10 );
}
return MOD_RETURN_VALUE( module_asn1crypto$version );
module_exception_exit:
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return MOD_RETURN_VALUE( NULL );
}
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
-365
View File
@@ -1,365 +0,0 @@
/* Generated code for Python source for module 'chardet.big5freq'
* created by Nuitka version 0.6.0
*
* This code is in part copyright 2018 Kay Hayen.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "nuitka/prelude.h"
#include "__helpers.h"
/* The _module_chardet$big5freq is a Python object pointer of module type. */
/* Note: For full compatibility with CPython, every module variable access
* needs to go through it except for cases where the module cannot possibly
* have changed in the mean time.
*/
PyObject *module_chardet$big5freq;
PyDictObject *moduledict_chardet$big5freq;
/* The module constants used, if any. */
extern PyObject *const_str_plain_BIG5_TABLE_SIZE;
extern PyObject *const_str_plain___file__;
static PyObject *const_str_digest_557e69a3c1d7db93c7037bee4aec2cc5;
static PyObject *const_tuple_0d344fc43c8fde1f903c0a27df00c4dd_tuple;
extern PyObject *const_float_0_75;
extern PyObject *const_str_plain_BIG5_CHAR_TO_FREQ_ORDER;
static PyObject *const_str_digest_7f4ff06de02ab54ab001bad022a7055d;
extern PyObject *const_str_plain___doc__;
extern PyObject *const_str_plain___cached__;
extern PyObject *const_int_pos_5376;
extern PyObject *const_str_plain_BIG5_TYPICAL_DISTRIBUTION_RATIO;
static bool constants_created = false;
static void createModuleConstants( void )
{
const_str_digest_557e69a3c1d7db93c7037bee4aec2cc5 = UNSTREAM_STRING( &constant_bin[ 139918 ], 52, 0 );
const_tuple_0d344fc43c8fde1f903c0a27df00c4dd_tuple = PyMarshal_ReadObjectFromString( (char *)&constant_bin[ 139970 ], 26885 );
const_str_digest_7f4ff06de02ab54ab001bad022a7055d = UNSTREAM_STRING( &constant_bin[ 166855 ], 16, 0 );
constants_created = true;
}
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_chardet$big5freq( void )
{
// The module may not have been used at all.
if (constants_created == false) return;
}
#endif
// The module code objects.
static void createModuleCodeObjects(void)
{
}
// The module function declarations.
// The module function definitions.
#if PYTHON_VERSION >= 300
static struct PyModuleDef mdef_chardet$big5freq =
{
PyModuleDef_HEAD_INIT,
"chardet.big5freq", /* m_name */
NULL, /* m_doc */
-1, /* m_size */
NULL, /* m_methods */
NULL, /* m_reload */
NULL, /* m_traverse */
NULL, /* m_clear */
NULL, /* m_free */
};
#endif
extern PyObject *const_str_plain___package__;
#if PYTHON_VERSION >= 300
extern PyObject *const_str_dot;
extern PyObject *const_str_plain___loader__;
extern PyObject *metapath_based_loader;
#endif
#if PYTHON_VERSION >= 340
extern PyObject *const_str_plain___spec__;
extern PyObject *const_str_plain__initializing;
#endif
extern void _initCompiledCellType();
extern void _initCompiledGeneratorType();
extern void _initCompiledFunctionType();
extern void _initCompiledMethodType();
extern void _initCompiledFrameType();
#if PYTHON_VERSION >= 350
extern void _initCompiledCoroutineTypes();
#endif
#if PYTHON_VERSION >= 360
extern void _initCompiledAsyncgenTypes();
#endif
// The exported interface to CPython. On import of the module, this function
// gets called. It has to have an exact function name, in cases it's a shared
// library export. This is hidden behind the MOD_INIT_DECL.
MOD_INIT_DECL( chardet$big5freq )
{
#if defined(_NUITKA_EXE) || PYTHON_VERSION >= 300
static bool _init_done = false;
// Modules might be imported repeatedly, which is to be ignored.
if ( _init_done )
{
return MOD_RETURN_VALUE( module_chardet$big5freq );
}
else
{
_init_done = true;
}
#endif
#ifdef _NUITKA_MODULE
// In case of a stand alone extension module, need to call initialization
// the init here because that's the first and only time we are going to get
// called here.
// Initialize the constant values used.
_initBuiltinModule();
createGlobalConstants();
/* Initialize the compiled types of Nuitka. */
_initCompiledCellType();
_initCompiledGeneratorType();
_initCompiledFunctionType();
_initCompiledMethodType();
_initCompiledFrameType();
#if PYTHON_VERSION >= 350
_initCompiledCoroutineTypes();
#endif
#if PYTHON_VERSION >= 360
_initCompiledAsyncgenTypes();
#endif
#if PYTHON_VERSION < 300
_initSlotCompare();
#endif
#if PYTHON_VERSION >= 270
_initSlotIternext();
#endif
patchBuiltinModule();
patchTypeComparison();
// Enable meta path based loader if not already done.
#ifdef _NUITKA_TRACE
puts("chardet.big5freq: Calling setupMetaPathBasedLoader().");
#endif
setupMetaPathBasedLoader();
#if PYTHON_VERSION >= 300
patchInspectModule();
#endif
#endif
/* The constants only used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("chardet.big5freq: Calling createModuleConstants().");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("chardet.big5freq: Calling createModuleCodeObjects().");
#endif
createModuleCodeObjects();
// puts( "in initchardet$big5freq" );
// Create the module object first. There are no methods initially, all are
// added dynamically in actual code only. Also no "__doc__" is initially
// set at this time, as it could not contain NUL characters this way, they
// are instead set in early module code. No "self" for modules, we have no
// use for it.
#if PYTHON_VERSION < 300
module_chardet$big5freq = Py_InitModule4(
"chardet.big5freq", // Module Name
NULL, // No methods initially, all are added
// dynamically in actual module code only.
NULL, // No "__doc__" is initially set, as it could
// not contain NUL this way, added early in
// actual code.
NULL, // No self for modules, we don't use it.
PYTHON_API_VERSION
);
#else
module_chardet$big5freq = PyModule_Create( &mdef_chardet$big5freq );
#endif
moduledict_chardet$big5freq = MODULE_DICT( module_chardet$big5freq );
// Update "__package__" value to what it ought to be.
{
#if 0
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___name__ );
UPDATE_STRING_DICT1(
moduledict_chardet$big5freq,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 300
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___name__ );
char const *module_name_cstr = PyString_AS_STRING( module_name );
char const *last_dot = strrchr( module_name_cstr, '.' );
if ( last_dot != NULL )
{
UPDATE_STRING_DICT1(
moduledict_chardet$big5freq,
(Nuitka_StringObject *)const_str_plain___package__,
PyString_FromStringAndSize( module_name_cstr, last_dot - module_name_cstr )
);
}
#else
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___name__ );
Py_ssize_t dot_index = PyUnicode_Find( module_name, const_str_dot, 0, PyUnicode_GetLength( module_name ), -1 );
if ( dot_index != -1 )
{
UPDATE_STRING_DICT1(
moduledict_chardet$big5freq,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring( module_name, 0, dot_index )
);
}
#endif
#endif
}
CHECK_OBJECT( module_chardet$big5freq );
// 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_7f4ff06de02ab54ab001bad022a7055d, module_chardet$big5freq );
assert( r != -1 );
}
#endif
// For deep importing of a module we need to have "__builtins__", so we set
// it ourselves in the same way than CPython does. Note: This must be done
// before the frame object is allocated, or else it may fail.
if ( GET_STRING_DICT_VALUE( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___builtins__ ) == NULL )
{
PyObject *value = (PyObject *)builtin_module;
// Check if main module, not a dict then but the module itself.
#if !defined(_NUITKA_EXE) || !0
value = PyModule_GetDict( value );
#endif
UPDATE_STRING_DICT0( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___builtins__, value );
}
#if PYTHON_VERSION >= 300
UPDATE_STRING_DICT0( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
#endif
#if PYTHON_VERSION >= 340
#if 0
UPDATE_STRING_DICT0( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___spec__, Py_None );
#else
{
PyObject *bootstrap_module = PyImport_ImportModule("importlib._bootstrap");
CHECK_OBJECT( bootstrap_module );
PyObject *module_spec_class = PyObject_GetAttrString( bootstrap_module, "ModuleSpec" );
Py_DECREF( bootstrap_module );
PyObject *args[] = {
GET_STRING_DICT_VALUE( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___name__ ),
metapath_based_loader
};
PyObject *spec_value = CALL_FUNCTION_WITH_ARGS2(
module_spec_class,
args
);
SET_ATTRIBUTE( spec_value, const_str_plain__initializing, Py_True );
UPDATE_STRING_DICT1( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
Py_DECREF( module_spec_class );
}
#endif
#endif
// Temp variables if any
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = Py_None;
UPDATE_STRING_DICT0( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = const_str_digest_557e69a3c1d7db93c7037bee4aec2cc5;
UPDATE_STRING_DICT0( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 );
}
{
PyObject *tmp_assign_source_3;
tmp_assign_source_3 = Py_None;
UPDATE_STRING_DICT0( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
}
{
PyObject *tmp_assign_source_4;
tmp_assign_source_4 = const_float_0_75;
UPDATE_STRING_DICT0( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain_BIG5_TYPICAL_DISTRIBUTION_RATIO, tmp_assign_source_4 );
}
{
PyObject *tmp_assign_source_5;
tmp_assign_source_5 = const_int_pos_5376;
UPDATE_STRING_DICT0( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain_BIG5_TABLE_SIZE, tmp_assign_source_5 );
}
{
PyObject *tmp_assign_source_6;
tmp_assign_source_6 = const_tuple_0d344fc43c8fde1f903c0a27df00c4dd_tuple;
UPDATE_STRING_DICT0( moduledict_chardet$big5freq, (Nuitka_StringObject *)const_str_plain_BIG5_CHAR_TO_FREQ_ORDER, tmp_assign_source_6 );
}
return MOD_RETURN_VALUE( module_chardet$big5freq );
}
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
-580
View File
@@ -1,580 +0,0 @@
/* Generated code for Python source for module 'chardet.compat'
* created by Nuitka version 0.6.0
*
* This code is in part copyright 2018 Kay Hayen.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "nuitka/prelude.h"
#include "__helpers.h"
/* The _module_chardet$compat is a Python object pointer of module type. */
/* Note: For full compatibility with CPython, every module variable access
* needs to go through it except for cases where the module cannot possibly
* have changed in the mean time.
*/
PyObject *module_chardet$compat;
PyDictObject *moduledict_chardet$compat;
/* The module constants used, if any. */
extern PyObject *const_str_plain_PY2;
static PyObject *const_str_digest_58e9489883b2042138fb899ca75ed20c;
extern PyObject *const_str_plain_sys;
extern PyObject *const_str_plain_False;
extern PyObject *const_str_plain_str;
extern PyObject *const_str_plain_text_type;
static PyObject *const_str_plain_base_str;
static PyObject *const_str_digest_8c816c8eff513dab6e5f223107eb9a1e;
extern PyObject *const_str_plain___file__;
extern PyObject *const_tuple_int_pos_3_int_0_tuple;
static PyObject *const_tuple_type_bytes_type_str_tuple;
extern PyObject *const_str_plain_bytes;
extern PyObject *const_int_0;
extern PyObject *const_str_plain_unicode;
extern PyObject *const_int_pos_3;
extern PyObject *const_str_plain_version_info;
extern PyObject *const_tuple_empty;
static PyObject *const_str_digest_18672d344fa483c179ef434c8fedba1e;
extern PyObject *const_str_plain_PY3;
extern PyObject *const_str_plain___doc__;
extern PyObject *const_str_plain___cached__;
static PyObject *module_filename_obj;
static bool constants_created = false;
static void createModuleConstants( void )
{
const_str_digest_58e9489883b2042138fb899ca75ed20c = UNSTREAM_STRING( &constant_bin[ 171339 ], 23, 0 );
const_str_plain_base_str = UNSTREAM_STRING( &constant_bin[ 171362 ], 8, 1 );
const_str_digest_8c816c8eff513dab6e5f223107eb9a1e = UNSTREAM_STRING( &constant_bin[ 171370 ], 50, 0 );
const_tuple_type_bytes_type_str_tuple = PyTuple_New( 2 );
PyTuple_SET_ITEM( const_tuple_type_bytes_type_str_tuple, 0, (PyObject *)&PyBytes_Type ); Py_INCREF( (PyObject *)&PyBytes_Type );
PyTuple_SET_ITEM( const_tuple_type_bytes_type_str_tuple, 1, (PyObject *)&PyUnicode_Type ); Py_INCREF( (PyObject *)&PyUnicode_Type );
const_str_digest_18672d344fa483c179ef434c8fedba1e = UNSTREAM_STRING( &constant_bin[ 171347 ], 14, 0 );
constants_created = true;
}
#ifndef __NUITKA_NO_ASSERT__
void checkModuleConstants_chardet$compat( void )
{
// The module may not have been used at all.
if (constants_created == false) return;
}
#endif
// The module code objects.
static PyCodeObject *codeobj_934d9992c70e9561703671ec09482f50;
static void createModuleCodeObjects(void)
{
module_filename_obj = const_str_digest_8c816c8eff513dab6e5f223107eb9a1e;
codeobj_934d9992c70e9561703671ec09482f50 = MAKE_CODEOBJ( module_filename_obj, const_str_digest_58e9489883b2042138fb899ca75ed20c, 1, const_tuple_empty, 0, 0, CO_NOFREE );
}
// The module function declarations.
// The module function definitions.
#if PYTHON_VERSION >= 300
static struct PyModuleDef mdef_chardet$compat =
{
PyModuleDef_HEAD_INIT,
"chardet.compat", /* m_name */
NULL, /* m_doc */
-1, /* m_size */
NULL, /* m_methods */
NULL, /* m_reload */
NULL, /* m_traverse */
NULL, /* m_clear */
NULL, /* m_free */
};
#endif
extern PyObject *const_str_plain___package__;
#if PYTHON_VERSION >= 300
extern PyObject *const_str_dot;
extern PyObject *const_str_plain___loader__;
extern PyObject *metapath_based_loader;
#endif
#if PYTHON_VERSION >= 340
extern PyObject *const_str_plain___spec__;
extern PyObject *const_str_plain__initializing;
#endif
extern void _initCompiledCellType();
extern void _initCompiledGeneratorType();
extern void _initCompiledFunctionType();
extern void _initCompiledMethodType();
extern void _initCompiledFrameType();
#if PYTHON_VERSION >= 350
extern void _initCompiledCoroutineTypes();
#endif
#if PYTHON_VERSION >= 360
extern void _initCompiledAsyncgenTypes();
#endif
// The exported interface to CPython. On import of the module, this function
// gets called. It has to have an exact function name, in cases it's a shared
// library export. This is hidden behind the MOD_INIT_DECL.
MOD_INIT_DECL( chardet$compat )
{
#if defined(_NUITKA_EXE) || PYTHON_VERSION >= 300
static bool _init_done = false;
// Modules might be imported repeatedly, which is to be ignored.
if ( _init_done )
{
return MOD_RETURN_VALUE( module_chardet$compat );
}
else
{
_init_done = true;
}
#endif
#ifdef _NUITKA_MODULE
// In case of a stand alone extension module, need to call initialization
// the init here because that's the first and only time we are going to get
// called here.
// Initialize the constant values used.
_initBuiltinModule();
createGlobalConstants();
/* Initialize the compiled types of Nuitka. */
_initCompiledCellType();
_initCompiledGeneratorType();
_initCompiledFunctionType();
_initCompiledMethodType();
_initCompiledFrameType();
#if PYTHON_VERSION >= 350
_initCompiledCoroutineTypes();
#endif
#if PYTHON_VERSION >= 360
_initCompiledAsyncgenTypes();
#endif
#if PYTHON_VERSION < 300
_initSlotCompare();
#endif
#if PYTHON_VERSION >= 270
_initSlotIternext();
#endif
patchBuiltinModule();
patchTypeComparison();
// Enable meta path based loader if not already done.
#ifdef _NUITKA_TRACE
puts("chardet.compat: Calling setupMetaPathBasedLoader().");
#endif
setupMetaPathBasedLoader();
#if PYTHON_VERSION >= 300
patchInspectModule();
#endif
#endif
/* The constants only used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("chardet.compat: Calling createModuleConstants().");
#endif
createModuleConstants();
/* The code objects used by this module are created now. */
#ifdef _NUITKA_TRACE
puts("chardet.compat: Calling createModuleCodeObjects().");
#endif
createModuleCodeObjects();
// puts( "in initchardet$compat" );
// Create the module object first. There are no methods initially, all are
// added dynamically in actual code only. Also no "__doc__" is initially
// set at this time, as it could not contain NUL characters this way, they
// are instead set in early module code. No "self" for modules, we have no
// use for it.
#if PYTHON_VERSION < 300
module_chardet$compat = Py_InitModule4(
"chardet.compat", // Module Name
NULL, // No methods initially, all are added
// dynamically in actual module code only.
NULL, // No "__doc__" is initially set, as it could
// not contain NUL this way, added early in
// actual code.
NULL, // No self for modules, we don't use it.
PYTHON_API_VERSION
);
#else
module_chardet$compat = PyModule_Create( &mdef_chardet$compat );
#endif
moduledict_chardet$compat = MODULE_DICT( module_chardet$compat );
// Update "__package__" value to what it ought to be.
{
#if 0
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___name__ );
UPDATE_STRING_DICT1(
moduledict_chardet$compat,
(Nuitka_StringObject *)const_str_plain___package__,
module_name
);
#else
#if PYTHON_VERSION < 300
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___name__ );
char const *module_name_cstr = PyString_AS_STRING( module_name );
char const *last_dot = strrchr( module_name_cstr, '.' );
if ( last_dot != NULL )
{
UPDATE_STRING_DICT1(
moduledict_chardet$compat,
(Nuitka_StringObject *)const_str_plain___package__,
PyString_FromStringAndSize( module_name_cstr, last_dot - module_name_cstr )
);
}
#else
PyObject *module_name = GET_STRING_DICT_VALUE( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___name__ );
Py_ssize_t dot_index = PyUnicode_Find( module_name, const_str_dot, 0, PyUnicode_GetLength( module_name ), -1 );
if ( dot_index != -1 )
{
UPDATE_STRING_DICT1(
moduledict_chardet$compat,
(Nuitka_StringObject *)const_str_plain___package__,
PyUnicode_Substring( module_name, 0, dot_index )
);
}
#endif
#endif
}
CHECK_OBJECT( module_chardet$compat );
// 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_18672d344fa483c179ef434c8fedba1e, module_chardet$compat );
assert( r != -1 );
}
#endif
// For deep importing of a module we need to have "__builtins__", so we set
// it ourselves in the same way than CPython does. Note: This must be done
// before the frame object is allocated, or else it may fail.
if ( GET_STRING_DICT_VALUE( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___builtins__ ) == NULL )
{
PyObject *value = (PyObject *)builtin_module;
// Check if main module, not a dict then but the module itself.
#if !defined(_NUITKA_EXE) || !0
value = PyModule_GetDict( value );
#endif
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___builtins__, value );
}
#if PYTHON_VERSION >= 300
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___loader__, metapath_based_loader );
#endif
#if PYTHON_VERSION >= 340
#if 0
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___spec__, Py_None );
#else
{
PyObject *bootstrap_module = PyImport_ImportModule("importlib._bootstrap");
CHECK_OBJECT( bootstrap_module );
PyObject *module_spec_class = PyObject_GetAttrString( bootstrap_module, "ModuleSpec" );
Py_DECREF( bootstrap_module );
PyObject *args[] = {
GET_STRING_DICT_VALUE( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___name__ ),
metapath_based_loader
};
PyObject *spec_value = CALL_FUNCTION_WITH_ARGS2(
module_spec_class,
args
);
SET_ATTRIBUTE( spec_value, const_str_plain__initializing, Py_True );
UPDATE_STRING_DICT1( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___spec__, spec_value );
Py_DECREF( module_spec_class );
}
#endif
#endif
// Temp variables if any
struct Nuitka_FrameObject *frame_934d9992c70e9561703671ec09482f50;
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;
// Module code.
{
PyObject *tmp_assign_source_1;
tmp_assign_source_1 = Py_None;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___doc__, tmp_assign_source_1 );
}
{
PyObject *tmp_assign_source_2;
tmp_assign_source_2 = const_str_digest_8c816c8eff513dab6e5f223107eb9a1e;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___file__, tmp_assign_source_2 );
}
{
PyObject *tmp_assign_source_3;
tmp_assign_source_3 = Py_None;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain___cached__, tmp_assign_source_3 );
}
{
PyObject *tmp_assign_source_4;
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_sys;
tmp_globals_name_1 = (PyObject *)moduledict_chardet$compat;
tmp_locals_name_1 = Py_None;
tmp_fromlist_name_1 = Py_None;
tmp_level_name_1 = const_int_0;
tmp_assign_source_4 = IMPORT_MODULE5( tmp_name_name_1, tmp_globals_name_1, tmp_locals_name_1, tmp_fromlist_name_1, tmp_level_name_1 );
assert( !(tmp_assign_source_4 == NULL) );
UPDATE_STRING_DICT1( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_sys, tmp_assign_source_4 );
}
// Frame without reuse.
frame_934d9992c70e9561703671ec09482f50 = MAKE_MODULE_FRAME( codeobj_934d9992c70e9561703671ec09482f50, module_chardet$compat );
// Push the new frame as the currently active one, and we should be exclusively
// owning it.
pushFrameStack( frame_934d9992c70e9561703671ec09482f50 );
assert( Py_REFCNT( frame_934d9992c70e9561703671ec09482f50 ) == 2 );
// Framed code:
{
nuitka_bool tmp_condition_result_1;
PyObject *tmp_compexpr_left_1;
PyObject *tmp_compexpr_right_1;
PyObject *tmp_source_name_1;
PyObject *tmp_mvar_value_1;
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_sys );
if (unlikely( tmp_mvar_value_1 == NULL ))
{
tmp_mvar_value_1 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_sys );
}
CHECK_OBJECT( tmp_mvar_value_1 );
tmp_source_name_1 = tmp_mvar_value_1;
tmp_compexpr_left_1 = LOOKUP_ATTRIBUTE( tmp_source_name_1, const_str_plain_version_info );
if ( tmp_compexpr_left_1 == NULL )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 25;
goto frame_exception_exit_1;
}
tmp_compexpr_right_1 = const_tuple_int_pos_3_int_0_tuple;
tmp_res = RICH_COMPARE_BOOL_LT( tmp_compexpr_left_1, tmp_compexpr_right_1 );
Py_DECREF( tmp_compexpr_left_1 );
if ( tmp_res == -1 )
{
assert( ERROR_OCCURRED() );
FETCH_ERROR_OCCURRED( &exception_type, &exception_value, &exception_tb );
exception_lineno = 25;
goto frame_exception_exit_1;
}
tmp_condition_result_1 = ( tmp_res != 0 ) ? NUITKA_BOOL_TRUE : NUITKA_BOOL_FALSE;
if ( tmp_condition_result_1 == NUITKA_BOOL_TRUE )
{
goto branch_yes_1;
}
else
{
goto branch_no_1;
}
branch_yes_1:;
{
PyObject *tmp_assign_source_5;
tmp_assign_source_5 = Py_True;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_PY2, tmp_assign_source_5 );
}
{
PyObject *tmp_assign_source_6;
tmp_assign_source_6 = Py_False;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_PY3, tmp_assign_source_6 );
}
{
PyObject *tmp_assign_source_7;
PyObject *tmp_tuple_element_1;
PyObject *tmp_mvar_value_2;
tmp_tuple_element_1 = (PyObject *)&PyUnicode_Type;
tmp_assign_source_7 = PyTuple_New( 2 );
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_assign_source_7, 0, tmp_tuple_element_1 );
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_unicode );
if (unlikely( tmp_mvar_value_2 == NULL ))
{
tmp_mvar_value_2 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_unicode );
}
if ( tmp_mvar_value_2 == NULL )
{
Py_DECREF( tmp_assign_source_7 );
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "unicode" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 28;
goto frame_exception_exit_1;
}
tmp_tuple_element_1 = tmp_mvar_value_2;
Py_INCREF( tmp_tuple_element_1 );
PyTuple_SET_ITEM( tmp_assign_source_7, 1, tmp_tuple_element_1 );
UPDATE_STRING_DICT1( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_base_str, tmp_assign_source_7 );
}
{
PyObject *tmp_assign_source_8;
PyObject *tmp_mvar_value_3;
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_unicode );
if (unlikely( tmp_mvar_value_3 == NULL ))
{
tmp_mvar_value_3 = GET_STRING_DICT_VALUE( dict_builtin, (Nuitka_StringObject *)const_str_plain_unicode );
}
if ( tmp_mvar_value_3 == NULL )
{
exception_type = PyExc_NameError;
Py_INCREF( exception_type );
exception_value = PyUnicode_FromFormat( "name '%s' is not defined", "unicode" );
exception_tb = NULL;
NORMALIZE_EXCEPTION( &exception_type, &exception_value, &exception_tb );
CHAIN_EXCEPTION( exception_value );
exception_lineno = 29;
goto frame_exception_exit_1;
}
tmp_assign_source_8 = tmp_mvar_value_3;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_text_type, tmp_assign_source_8 );
}
goto branch_end_1;
branch_no_1:;
{
PyObject *tmp_assign_source_9;
tmp_assign_source_9 = Py_False;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_PY2, tmp_assign_source_9 );
}
{
PyObject *tmp_assign_source_10;
tmp_assign_source_10 = Py_True;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_PY3, tmp_assign_source_10 );
}
{
PyObject *tmp_assign_source_11;
tmp_assign_source_11 = const_tuple_type_bytes_type_str_tuple;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_base_str, tmp_assign_source_11 );
}
{
PyObject *tmp_assign_source_12;
tmp_assign_source_12 = (PyObject *)&PyUnicode_Type;
UPDATE_STRING_DICT0( moduledict_chardet$compat, (Nuitka_StringObject *)const_str_plain_text_type, tmp_assign_source_12 );
}
branch_end_1:;
}
// Restore frame exception if necessary.
#if 0
RESTORE_FRAME_EXCEPTION( frame_934d9992c70e9561703671ec09482f50 );
#endif
popFrameStack();
assertFrameObject( frame_934d9992c70e9561703671ec09482f50 );
goto frame_no_exception_1;
frame_exception_exit_1:;
#if 0
RESTORE_FRAME_EXCEPTION( frame_934d9992c70e9561703671ec09482f50 );
#endif
if ( exception_tb == NULL )
{
exception_tb = MAKE_TRACEBACK( frame_934d9992c70e9561703671ec09482f50, exception_lineno );
}
else if ( exception_tb->tb_frame != &frame_934d9992c70e9561703671ec09482f50->m_frame )
{
exception_tb = ADD_TRACEBACK( exception_tb, frame_934d9992c70e9561703671ec09482f50, exception_lineno );
}
// Put the previous frame back on top.
popFrameStack();
// Return the error.
goto module_exception_exit;
frame_no_exception_1:;
return MOD_RETURN_VALUE( module_chardet$compat );
module_exception_exit:
RESTORE_ERROR_OCCURRED( exception_type, exception_value, exception_tb );
return MOD_RETURN_VALUE( NULL );
}
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More