mirror of
https://github.com/python/cpython.git
synced 2024-11-24 10:24:35 +08:00
Fixed confusing error message (open should be popen)
This commit is contained in:
parent
9fb036811a
commit
9db401333f
@ -565,7 +565,7 @@ posix_popen(self, args)
|
|||||||
if (args == NULL || !is_tupleobject(args) || gettuplesize(args) != 2 ||
|
if (args == NULL || !is_tupleobject(args) || gettuplesize(args) != 2 ||
|
||||||
!is_stringobject(name = gettupleitem(args, 0)) ||
|
!is_stringobject(name = gettupleitem(args, 0)) ||
|
||||||
!is_stringobject(mode = gettupleitem(args, 1))) {
|
!is_stringobject(mode = gettupleitem(args, 1))) {
|
||||||
err_setstr(TypeError, "open() requires 2 string arguments");
|
err_setstr(TypeError, "popen() requires 2 string arguments");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
fp = popen(getstringvalue(name), getstringvalue(mode));
|
fp = popen(getstringvalue(name), getstringvalue(mode));
|
||||||
|
Loading…
Reference in New Issue
Block a user