comparison Python/errors.c @ 48660:85b67fb5672b

Rename PyUnicode_AsString -> _PyUnicode_AsString and PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark them for interpreter internal use only. We'll have to rework these APIs or create new ones for the purpose of accessing the UTF-8 representation of Unicode objects for 3.1.
author Marc-André Lemburg <mal@egenix.com>
date Thu, 07 Aug 2008 18:54:33 +0000
parents de75e7280b7a
children d6e86a96f9b3
comparison
equal deleted inserted replaced
48659:042d16a05016 48660:85b67fb5672b
707 707
708 moduleName = PyObject_GetAttrString(t, "__module__"); 708 moduleName = PyObject_GetAttrString(t, "__module__");
709 if (moduleName == NULL) 709 if (moduleName == NULL)
710 PyFile_WriteString("<unknown>", f); 710 PyFile_WriteString("<unknown>", f);
711 else { 711 else {
712 char* modstr = PyUnicode_AsString(moduleName); 712 char* modstr = _PyUnicode_AsString(moduleName);
713 if (modstr && 713 if (modstr &&
714 strcmp(modstr, "builtins") != 0) 714 strcmp(modstr, "builtins") != 0)
715 { 715 {
716 PyFile_WriteString(modstr, f); 716 PyFile_WriteString(modstr, f);
717 PyFile_WriteString(".", f); 717 PyFile_WriteString(".", f);