Skip to content

Commit 2e6fb73

Browse files
Only warn in file init
1 parent b6f80d7 commit 2e6fb73

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Python/bltinmodule.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,11 +1504,6 @@ Return the octal representation of an integer or long integer.");
15041504
static PyObject *
15051505
builtin_open(PyObject *self, PyObject *args, PyObject *kwds)
15061506
{
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-
15121507
return PyObject_Call((PyObject*)&PyFile_Type, args, kwds);
15131508
}
15141509

0 commit comments

Comments
 (0)