summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2011-04-26 06:45:24 +0300
committerEzio Melotti <ezio.melotti@gmail.com>2011-04-26 06:45:24 +0300
commit0a4fab79f8c4ae64d4fc3b4161b5e10c6b0d8191 (patch)
treefc0b7dd147477b9a86b5ee7eafdadd1f3507ebbf /Python/compile.c
parentd34640942e7e1b554a420222d2016e113b76d333 (diff)
parentba246297d74b41fb754038545ca3cb2ce57b7656 (diff)
downloadcpython-0a4fab79f8c4ae64d4fc3b4161b5e10c6b0d8191.tar.gz
#6780: merge with 3.2.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 1d6e38c22e..53f5a12cc3 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -3026,7 +3026,7 @@ expr_constant(struct compiler *c, expr_ty e)
case Name_kind:
/* optimize away names that can't be reassigned */
id = PyBytes_AS_STRING(
- _PyUnicode_AsDefaultEncodedString(e->v.Name.id, NULL));
+ _PyUnicode_AsDefaultEncodedString(e->v.Name.id));
if (strcmp(id, "True") == 0) return 1;
if (strcmp(id, "False") == 0) return 0;
if (strcmp(id, "None") == 0) return 0;