comparison Python/errors.c @ 44098:0889daf6d0d9

#1535: rename __builtin__ module to builtins.
author Georg Brandl <georg@python.org>
date Sun, 02 Dec 2007 09:40:06 +0000
parents ee081609cee8
children f324631462a2
comparison
equal deleted inserted replaced
44090:6d7fd95ef14a 44098:0889daf6d0d9
643 if (moduleName == NULL) 643 if (moduleName == NULL)
644 PyFile_WriteString("<unknown>", f); 644 PyFile_WriteString("<unknown>", f);
645 else { 645 else {
646 char* modstr = PyUnicode_AsString(moduleName); 646 char* modstr = PyUnicode_AsString(moduleName);
647 if (modstr && 647 if (modstr &&
648 strcmp(modstr, "__builtin__") != 0) 648 strcmp(modstr, "builtins") != 0)
649 { 649 {
650 PyFile_WriteString(modstr, f); 650 PyFile_WriteString(modstr, f);
651 PyFile_WriteString(".", f); 651 PyFile_WriteString(".", f);
652 } 652 }
653 } 653 }