@@ -1992,18 +1992,18 @@ Utility functions
1992
1992
1993
1993
.. function :: DllCanUnloadNow()
1994
1994
1995
- This function is a hook which allows implementing in-process
1996
- COM servers with ctypes. It is called from the DllCanUnloadNow function that
1997
- the _ctypes extension dll exports.
1995
+ This function is a hook which allows implementing in-process COM servers with
1996
+ `` ctypes `` . It is called from the `` DllCanUnloadNow `` function that the
1997
+ `` _ctypes `` extension dll exports.
1998
1998
1999
1999
.. availability :: Windows
2000
2000
2001
2001
2002
2002
.. function :: DllGetClassObject()
2003
2003
2004
- This function is a hook which allows implementing in-process
2005
- COM servers with ctypes. It is called from the DllGetClassObject function
2006
- that the ``_ctypes `` extension dll exports.
2004
+ This function is a hook which allows implementing in-process COM servers with
2005
+ `` ctypes `` . It is called from the `` DllGetClassObject `` function that the
2006
+ ``_ctypes `` extension dll exports.
2007
2007
2008
2008
.. availability :: Windows
2009
2009
@@ -2035,9 +2035,9 @@ Utility functions
2035
2035
2036
2036
.. function :: FormatError([code])
2037
2037
2038
- Returns a textual description of the error code *code *. If no
2039
- error code is specified, the last error code is used by calling the Windows
2040
- api function GetLastError.
2038
+ Returns a textual description of the error code *code *. If no error code is
2039
+ specified, the last error code is used by calling the Windows api function
2040
+ :func: ` GetLastError ` .
2041
2041
2042
2042
.. availability :: Windows
2043
2043
@@ -2142,11 +2142,10 @@ Utility functions
2142
2142
2143
2143
.. function :: WinError(code=None, descr=None)
2144
2144
2145
- This function is probably the worst-named thing in ctypes. It
2146
- creates an instance of :exc: `OSError `. If *code * is not specified,
2147
- ``GetLastError `` is called to determine the error code. If *descr * is not
2148
- specified, :func: `FormatError ` is called to get a textual description of the
2149
- error.
2145
+ This function is probably the worst-named thing in ``ctypes ``. It creates an
2146
+ instance of :exc: `OSError `. If *code * is not specified, :func: `GetLastError `
2147
+ is called to determine the error code. If *descr * is not specified,
2148
+ :func: `FormatError ` is called to get a textual description of the error.
2150
2149
2151
2150
.. availability :: Windows
2152
2151
0 commit comments