We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6f80d7 + 2e6fb73 commit d888130Copy full SHA for d888130
Python/bltinmodule.c
@@ -1504,11 +1504,6 @@ Return the octal representation of an integer or long integer.");
1504
static PyObject *
1505
builtin_open(PyObject *self, PyObject *args, PyObject *kwds)
1506
{
1507
- if (PyErr_WarnPy3k("The builtin 'open()' function is not supported in 3.x, "
1508
- "use the 'io.open()' function instead with the encoding keyword argument", 1) < 0){
1509
- return NULL;
1510
- }
1511
-
1512
return PyObject_Call((PyObject*)&PyFile_Type, args, kwds);
1513
}
1514
0 commit comments