diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-24 23:12:06 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-24 23:12:06 (GMT) |
commit | 41103bf6f2f5787ddf7106fb3e5a0a98bb6b1c7d (patch) | |
tree | f72b9c3d7b66bf39928689e29ac583fdcc297960 /Python/compile.c | |
parent | a5d16a3f855540a0d67a8bd3ff6927455ed7a8b5 (diff) | |
download | cpython-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/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
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; } |