summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2011-05-26 00:38:51 +0200
committerStefan Krah <skrah@bytereef.org>2011-05-26 00:38:51 +0200
commit831d4b00af57fb0b0be19faa068eb4c257b4d5cb (patch)
tree513ac89c4d797dda0419ad95840b562fe69fd074 /Python/compile.c
parenta2d15a46f343e898a8f6e124e2af44cc5f616df3 (diff)
parentd810119eacf118d9cb77335263ec3b32aa74bb0c (diff)
downloadcpython-831d4b00af57fb0b0be19faa068eb4c257b4d5cb.tar.gz
Null merge: changeset is already in 3.3
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;