summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-24 23:12:06 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-24 23:12:06 (GMT)
commit41103bf6f2f5787ddf7106fb3e5a0a98bb6b1c7d (patch)
treef72b9c3d7b66bf39928689e29ac583fdcc297960 /Python
parenta5d16a3f855540a0d67a8bd3ff6927455ed7a8b5 (diff)
downloadcpython-41103bf6f2f5787ddf7106fb3e5a0a98bb6b1c7d.zip
cpython-41103bf6f2f5787ddf7106fb3e5a0a98bb6b1c7d.tar.gz
cpython-41103bf6f2f5787ddf7106fb3e5a0a98bb6b1c7d.tar.bz2
Ensure that code object names (co_name) are unicode.
Verify that they print properly too.
Diffstat (limited to 'Python')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 8ae4036..d2bfe86 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("<dictcomp>");
+ name = PyUnicode_FromString("<dictcomp>");
if (!name)
return 0;
}