Searched refs:modstr (Results 1 - 3 of 3) sorted by relevance

/external/python/cpython2/Python/
H A Derrors.c685 char* modstr = PyString_AsString(moduleName); local
686 if (modstr &&
687 strcmp(modstr, "exceptions") != 0)
689 PyFile_WriteString(modstr, f);
H A Dpythonrun.c1280 char* modstr = PyString_AsString(moduleName); local
1281 if (modstr && strcmp(modstr, "exceptions"))
1283 err = PyFile_WriteString(modstr, f);
/external/python/cpython2/Objects/
H A Dclassobject.c33 static PyObject *docstr, *modstr, *namestr; local
39 if (modstr == NULL) {
40 modstr= PyString_InternFromString("__module__");
41 if (modstr == NULL)
63 if (PyDict_GetItem(dict, modstr) == NULL) {
68 if (PyDict_SetItem(dict, modstr, modname) < 0)

Completed in 141 milliseconds