Home
last modified time | relevance | path

Searched refs:pyc_magic (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Python/
Dimport.c87 static long pyc_magic = MAGIC; variable
195 pyc_magic = MAGIC + 1; in _PyImport_Init()
586 return pyc_magic; in PyImport_GetMagicNumber()
819 if (magic != pyc_magic) { in check_compiled_module()
869 if (magic != pyc_magic) { in load_compiled_module()
973 PyMarshal_WriteLongToFile(pyc_magic, fp, Py_MARSHAL_VERSION); in write_compiled_module()
2954 buf[0] = (char) ((pyc_magic >> 0) & 0xff); in imp_get_magic()
2955 buf[1] = (char) ((pyc_magic >> 8) & 0xff); in imp_get_magic()
2956 buf[2] = (char) ((pyc_magic >> 16) & 0xff); in imp_get_magic()
2957 buf[3] = (char) ((pyc_magic >> 24) & 0xff); in imp_get_magic()
/external/python/cpython3/Python/
Dimport.c593 PyObject *external, *pyc_magic; in PyImport_GetMagicNumber() local
598 pyc_magic = PyObject_GetAttrString(external, "_RAW_MAGIC_NUMBER"); in PyImport_GetMagicNumber()
600 if (pyc_magic == NULL) in PyImport_GetMagicNumber()
602 res = PyLong_AsLong(pyc_magic); in PyImport_GetMagicNumber()
603 Py_DECREF(pyc_magic); in PyImport_GetMagicNumber()