commit | 41103bf6f2f5787ddf7106fb3e5a0a98bb6b1c7d | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Fri Aug 24 23:12:06 2007 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Fri Aug 24 23:12:06 2007 +0000 |
tree | f72b9c3d7b66bf39928689e29ac583fdcc297960 | |
parent | a5d16a3f855540a0d67a8bd3ff6927455ed7a8b5 [diff] |
Ensure that code object names (co_name) are unicode. Verify that they print properly too.
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 @@ { static identifier name; if (!name) { - name = PyString_FromString("<dictcomp>"); + name = PyUnicode_FromString("<dictcomp>"); if (!name) return 0; }