◐ Shell
clean mode source ↗

bpo-31650: Remove _Py_CheckHashBasedPycsMode global config var by vstinner · Pull Request #8608 · python/cpython

@@ -1,5 +1,4 @@ #include "Python.h" #include "internal/import.h" #include "internal/pystate.h"

Expand Down Expand Up @@ -52,7 +51,6 @@ int Py_IsolatedFlag = 0; /* for -I, isolate from user's env */ int Py_LegacyWindowsFSEncodingFlag = 0; /* Uses mbcs instead of utf-8 */ int Py_LegacyWindowsStdioFlag = 0; /* Uses FileIO instead of WindowsConsoleIO */ #endif const char *_Py_CheckHashBasedPycsMode = "default";

void Expand Down Expand Up @@ -317,10 +315,6 @@ _PyCoreConfig_GetGlobalConfig(_PyCoreConfig *config) COPY_NOT_FLAG(write_bytecode, Py_DontWriteBytecodeFlag); COPY_NOT_FLAG(user_site_directory, Py_NoUserSiteDirectory);
if (config->_check_hash_pycs_mode == NULL) { config->_check_hash_pycs_mode = _Py_CheckHashBasedPycsMode; }
#undef COPY_FLAG #undef COPY_NOT_FLAG } Expand Down Expand Up @@ -359,10 +353,6 @@ _PyCoreConfig_SetGlobalConfig(const _PyCoreConfig *config) COPY_NOT_FLAG(write_bytecode, Py_DontWriteBytecodeFlag); COPY_NOT_FLAG(user_site_directory, Py_NoUserSiteDirectory);
if (config->_check_hash_pycs_mode != NULL) { _Py_CheckHashBasedPycsMode = config->_check_hash_pycs_mode; }
/* Random or non-zero hash seed */ Py_HashRandomizationFlag = (config->use_hash_seed == 0 || config->hash_seed != 0); Expand Down