diff Python/compile.c @ 42802:01ee6311ba46

Ensure that code object names (co_name) are unicode. Verify that they print properly too.
author Neal Norwitz <nnorwitz@gmail.com>
date Fri, 24 Aug 2007 23:12:06 +0000
parents d7517c306791
children 4e6b4ba60c3b
line wrap: on
line diff
--- a/Python/compile.c	Fri Aug 24 22:53:58 2007 +0000
+++ b/Python/compile.c	Fri Aug 24 23:12:06 2007 +0000
@@ -2991,7 +2991,7 @@
 {
 	static identifier name;
 	if (!name) {
-		name = PyString_FromString("<dictcomp>");
+		name = PyUnicode_FromString("<dictcomp>");
 		if (!name)
 			return 0;
 	}