From 41103bf6f2f5787ddf7106fb3e5a0a98bb6b1c7d Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Fri, 24 Aug 2007 23:12:06 +0000 Subject: Ensure that code object names (co_name) are unicode. Verify that they print properly too. --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 8ae40368ec..d2bfe86ff1 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2991,7 +2991,7 @@ compiler_dictcomp(struct compiler *c, expr_ty e) { static identifier name; if (!name) { - name = PyString_FromString(""); + name = PyUnicode_FromString(""); if (!name) return 0; } -- cgit v1.2.1