MCPcopy
hub / github.com/urllib3/urllib3 / fileno

Method fileno

src/urllib3/response.py:1310–1319  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1308 return True
1309
1310 def fileno(self) -> int:
1311 if self._fp is None:
1312 raise OSError("HTTPResponse has no file to get a fileno from")
1313 elif hasattr(self._fp, "fileno"):
1314 return self._fp.fileno()
1315 else:
1316 raise OSError(
1317 "The file-like object this HTTPResponse is wrapped "
1318 "around has no file descriptor"
1319 )
1320
1321 def flush(self) -> None:
1322 if (

Calls

no outgoing calls