Skip to content

Commit d888130

Browse files
Merge python#31
31: Only warn in file init r=ltratt a=nanjekyejoannah Fixes python#29 Co-authored-by: Joannah Nanjekye <[email protected]>
2 parents b6f80d7 + 2e6fb73 commit d888130

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)