diff options
| author | Senthil Kumaran <orsenthil@gmail.com> | 2011-04-26 21:14:26 +0800 |
|---|---|---|
| committer | Senthil Kumaran <orsenthil@gmail.com> | 2011-04-26 21:14:26 +0800 |
| commit | 5116efa1caf61d93ecabc82160f3cf1d3f515bb3 (patch) | |
| tree | 0cc23ef0f0ffbab0bd125a41242806e8fc58a51c /Python/compile.c | |
| parent | 1aa611b27b5c6aca69579e7e873bb2ddddb1a2fc (diff) | |
| parent | 75dec45567f0585bd2360c241525284972ce8e4a (diff) | |
| download | cpython-5116efa1caf61d93ecabc82160f3cf1d3f515bb3.tar.gz | |
merge from 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; |
