Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3809026

Browse files
committed
#4826 exec() doesn't take a file object anymore
1 parent 3dc7c6a commit 3809026

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/bltinmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,8 @@ builtin_exec(PyObject *self, PyObject *args)
820820
PyDoc_STRVAR(exec_doc,
821821
"exec(object[, globals[, locals]])\n\
822822
\n\
823-
Read and execute code from a object, which can be a string, a code\n\
824-
object or a file object.\n\
823+
Read and execute code from a object, which can be a string or a code\n\
824+
object.\n\
825825
The globals and locals are dictionaries, defaulting to the current\n\
826826
globals and locals. If only globals is given, locals defaults to it.");
827827

0 commit comments

Comments
 (0)