File: curl_errstr.rst

package info (click to toggle)
pycurl 7.45.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,780 kB
  • sloc: python: 8,663; ansic: 6,891; makefile: 202; sh: 183
file content (11 lines) | stat: -rw-r--r-- 465 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
errstr() -> string

Return the internal libcurl error buffer of this handle as a string.

Return value is a ``str`` instance on all Python versions.
On Python 3, error buffer data is decoded using Python's default encoding
at the time of the call. If this decoding fails, ``UnicodeDecodeError`` is
raised. Use :ref:`errstr_raw <errstr_raw>` to retrieve the error buffer
as a byte string in this case.

On Python 2, ``errstr`` and ``errstr_raw`` behave identically.