]> granicus.if.org Git - python/commitdiff
Fix example for PyErr_SetFromErrno() (need to pass exception type).
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sat, 23 Mar 2002 20:57:11 +0000 (20:57 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sat, 23 Mar 2002 20:57:11 +0000 (20:57 +0000)
Doc/api/exceptions.tex

index eaaafdd0821515e8c5764185316114b8abdb246e..796291fc1a4d88bf787ba95ed031938903a07a4b 100644 (file)
@@ -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,