[Python-3000-checkins] r62717 - python/branches/py3k/Python/_warnings.c

benjamin.peterson python-3000-checkins at python.org
Mon May 5 01:22:13 CEST 2008


Author: benjamin.peterson
Date: Mon May  5 01:22:13 2008
New Revision: 62717

Log:
Fix merge error


Modified:
   python/branches/py3k/Python/_warnings.c

Modified: python/branches/py3k/Python/_warnings.c
==============================================================================
--- python/branches/py3k/Python/_warnings.c	(original)
+++ python/branches/py3k/Python/_warnings.c	Mon May  5 01:22:13 2008
@@ -498,7 +498,7 @@
                 }
                 else if (!is_true) {
                     Py_DECREF(*filename);
-                    *filename = PyString_FromString("__main__");
+                    *filename = PyUnicode_FromString("__main__");
                     if (*filename == NULL)
                         goto handle_error;
                 }


More information about the Python-3000-checkins mailing list