diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-03-28 17:42:35 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-03-28 17:42:35 -0500 |
commit | e3f1f2bd79c421c14d004830c42e7e7445acc609 (patch) | |
tree | fb9a49358d4fc50a175978bfe032af3ca3046248 /Python/compile.c | |
parent | 2bb0258a88cb339cafb87163c7194484dff0efd9 (diff) | |
parent | b6e0b589f2cdffd7a0b24d1bcb5af461be192c5e (diff) | |
download | cpython-e3f1f2bd79c421c14d004830c42e7e7445acc609.tar.gz |
merge 3.2
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 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; |