From: Neil Schemenauer Date: Sat, 23 Mar 2002 20:57:11 +0000 (+0000) Subject: Fix example for PyErr_SetFromErrno() (need to pass exception type). X-Git-Tag: v2.3c1~6374 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=194152845c873d4c915094daaebf52703ae06203;p=python Fix example for PyErr_SetFromErrno() (need to pass exception type). --- diff --git a/Doc/api/exceptions.tex b/Doc/api/exceptions.tex index eaaafdd082..796291fc1a 100644 --- a/Doc/api/exceptions.tex +++ b/Doc/api/exceptions.tex @@ -178,8 +178,8 @@ for each thread. \cfunction{PyErr_CheckSignals()}, and if that set the error indicator, leaves it set to that. The function always returns \NULL, so a wrapper function around a system call can write - \samp{return PyErr_SetFromErrno();} when the system call returns an - error. + \samp{return PyErr_SetFromErrno(\var{type});} when the system call + returns an error. \end{cfuncdesc} \begin{cfuncdesc}{PyObject*}{PyErr_SetFromErrnoWithFilename}{PyObject *type,