[Python-checkins] r46340 - python/branches/sreifschneider-newnewexcept/Python/pythonrun.c

georg.brandl python-checkins at python.org
Fri May 26 17:11:02 CEST 2006


Author: georg.brandl
Date: Fri May 26 17:11:01 2006
New Revision: 46340

Modified:
   python/branches/sreifschneider-newnewexcept/Python/pythonrun.c
Log:
Fix name printing.



Modified: python/branches/sreifschneider-newnewexcept/Python/pythonrun.c
==============================================================================
--- python/branches/sreifschneider-newnewexcept/Python/pythonrun.c	(original)
+++ python/branches/sreifschneider-newnewexcept/Python/pythonrun.c	Fri May 26 17:11:01 2006
@@ -1139,12 +1139,12 @@
 				err = PyFile_WriteString("<unknown>", f);
 			else {
 				char* modstr = PyString_AsString(moduleName);
-				Py_DECREF(moduleName);
-				if (modstr && strcmp(modstr, "exceptions"))
+				if (modstr && strcmp(modstr, "__builtin__"))
 				{
 					err = PyFile_WriteString(modstr, f);
 					err += PyFile_WriteString(".", f);
 				}
+				Py_DECREF(moduleName);
 			}
 			if (err == 0) {
 				if (className == NULL)


More information about the Python-checkins mailing list