summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-25 14:47:37 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-25 14:47:37 (GMT)
commitf7a17b48d748e1835bcf9df86fb7fb318bb020f8 (patch)
tree403d91c57f72d6e538ce09a8037bd658bc619760 /Python
parent16bdd4120d8452e8e04b124bcdd116608c5166b0 (diff)
downloadcpython-f7a17b48d748e1835bcf9df86fb7fb318bb020f8.zip
cpython-f7a17b48d748e1835bcf9df86fb7fb318bb020f8.tar.gz
cpython-f7a17b48d748e1835bcf9df86fb7fb318bb020f8.tar.bz2
Replace IOError with OSError (#16715)
Diffstat (limited to 'Python')
-rw-r--r--Python/Python-ast.c1
-rw-r--r--Python/importlib.h4
2 files changed, 2 insertions, 3 deletions
diff --git a/Python/Python-ast.c b/Python/Python-ast.c
index 20b7acb..b940417 100644
--- a/Python/Python-ast.c
+++ b/Python/Python-ast.c
@@ -2066,7 +2066,6 @@ Name(identifier id, expr_context_ty ctx, int lineno, int col_offset, PyArena
*arena)
{
expr_ty p;
- assert(PyUnicode_CompareWithASCIIString(id, "True") && PyUnicode_CompareWithASCIIString(id, "False") && PyUnicode_CompareWithASCIIString(id, "None"));
if (!id) {
PyErr_SetString(PyExc_ValueError,
"field id is required for Name");
diff --git a/Python/importlib.h b/Python/importlib.h
index 269d498..0d57050 100644
--- a/Python/importlib.h
+++ b/Python/importlib.h
@@ -2131,7 +2131,7 @@ unsigned char _Py_M__importlib[] = {
117,8,0,0,0,116,111,107,101,110,105,122,101,117,12,0,
0,0,103,101,116,95,102,105,108,101,110,97,109,101,117,8,
0,0,0,103,101,116,95,100,97,116,97,117,7,0,0,0,
- 73,79,69,114,114,111,114,117,11,0,0,0,73,109,112,111,
+ 79,83,69,114,114,111,114,117,11,0,0,0,73,109,112,111,
114,116,69,114,114,111,114,117,3,0,0,0,95,105,111,117,
7,0,0,0,66,121,116,101,115,73,79,117,8,0,0,0,
114,101,97,100,108,105,110,101,117,15,0,0,0,100,101,116,
@@ -2244,7 +2244,7 @@ unsigned char _Py_M__importlib[] = {
111,116,73,109,112,108,101,109,101,110,116,101,100,69,114,114,
111,114,117,10,0,0,0,112,97,116,104,95,115,116,97,116,
115,117,3,0,0,0,105,110,116,117,8,0,0,0,103,101,
- 116,95,100,97,116,97,117,7,0,0,0,73,79,69,114,114,
+ 116,95,100,97,116,97,117,7,0,0,0,79,83,69,114,114,
111,114,117,20,0,0,0,95,98,121,116,101,115,95,102,114,
111,109,95,98,121,116,101,99,111,100,101,117,11,0,0,0,
73,109,112,111,114,116,69,114,114,111,114,117,8,0,0,0,