]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed confusing error message (open should be popen)
authorGuido van Rossum <guido@python.org>
Mon, 1 Jul 1991 18:48:44 +0000 (18:48 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 Jul 1991 18:48:44 +0000 (18:48 +0000)
Modules/posixmodule.c

index 567d706de7e86146edb92e9a359e175a95903a14..7645bfda3fc5c9ba90185cba622e4f68a4bba820 100644 (file)
@@ -565,7 +565,7 @@ posix_popen(self, args)
        if (args == NULL || !is_tupleobject(args) || gettuplesize(args) != 2 ||
                !is_stringobject(name = gettupleitem(args, 0)) ||
                !is_stringobject(mode = gettupleitem(args, 1))) {
-               err_setstr(TypeError, "open() requires 2 string arguments");
+               err_setstr(TypeError, "popen() requires 2 string arguments");
                return NULL;
        }
        fp = popen(getstringvalue(name), getstringvalue(mode));