diff Modules/gcmodule.c @ 42750:ce52cd71a8d9

Convert a bunch of constant strings in C to unicode.
author Neal Norwitz <nnorwitz@gmail.com>
date Thu, 23 Aug 2007 21:42:55 +0000
parents e70cdce0e8b2
children f324631462a2
line wrap: on
line diff
--- a/Modules/gcmodule.c	Thu Aug 23 20:28:10 2007 +0000
+++ b/Modules/gcmodule.c	Thu Aug 23 21:42:55 2007 +0000
@@ -851,7 +851,7 @@
 
 	if (PyErr_Occurred()) {
 		if (gc_str == NULL)
-			gc_str = PyString_FromString("garbage collection");
+			gc_str = PyUnicode_FromString("garbage collection");
 		PyErr_WriteUnraisable(gc_str);
 		Py_FatalError("unexpected exception during garbage collection");
 	}