Fixed confusing error message (open should be popen)

This commit is contained in:
Guido van Rossum 1991-07-01 18:48:44 +00:00
parent 9fb036811a
commit 9db401333f

View File

@ -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));