comparison Python/Python-ast.c @ 81039:7d69d04522e3

Replace IOError with OSError (#16715)
author Andrew Svetlov <andrew.svetlov@gmail.com>
date Tue, 25 Dec 2012 16:47:37 +0200
parents 03f92a9f0875
children 7c5c678e4164
comparison
equal deleted inserted replaced
81038:9a65501a71e6 81039:7d69d04522e3
2064 expr_ty 2064 expr_ty
2065 Name(identifier id, expr_context_ty ctx, int lineno, int col_offset, PyArena 2065 Name(identifier id, expr_context_ty ctx, int lineno, int col_offset, PyArena
2066 *arena) 2066 *arena)
2067 { 2067 {
2068 expr_ty p; 2068 expr_ty p;
2069 assert(PyUnicode_CompareWithASCIIString(id, "True") && PyUnicode_CompareWithASCIIString(id, "False") && PyUnicode_CompareWithASCIIString(id, "None"));
2070 if (!id) { 2069 if (!id) {
2071 PyErr_SetString(PyExc_ValueError, 2070 PyErr_SetString(PyExc_ValueError,
2072 "field id is required for Name"); 2071 "field id is required for Name");
2073 return NULL; 2072 return NULL;
2074 } 2073 }