summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-03-14 22:54:19 -0400
committerR David Murray <rdmurray@bitdance.com>2011-03-14 22:54:19 -0400
commit5fa03f709383c42df97d35f90570e909d2eb7afa (patch)
treeb4aefb8ad521164a00e7bd21ed6ca8fc40c1cb23 /Python/compile.c
parent0f725e3b0cadc7145d77b03061556e162b65f689 (diff)
parenteba3adb8c547317bb259a27be2dc6b0af2f467af (diff)
downloadcpython-5fa03f709383c42df97d35f90570e909d2eb7afa.tar.gz
Merge redundant __contains__ doc fix from 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;