zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
U
Z±dßã@srddlZddlmZddlZddlmZmZzddlmZdZWne    k
rXdZYnXedd„ƒZ
d    d
„Z dS) éN)Úcontextmanager)ÚsocketÚ SOCK_STREAM)ÚAF_UNIXTFccs&z
|VWn| ¡‚YnXdS)N)Úclose)Úobj©rúWd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\trio/_highlevel_open_unix_stream.pyÚclose_on_errors
 
r
c    ÃsJts tdƒ‚tttƒ}t|ƒ| t |¡¡IdHW5QRXt     
|¡S)aóOpens a connection to the specified
    `Unix domain socket <https://en.wikipedia.org/wiki/Unix_domain_socket>`__.
 
    You must have read/write permission on the specified file to connect.
 
    Args:
      filename (str or bytes): The filename to open the connection to.
 
    Returns:
      SocketStream: a :class:`~trio.abc.Stream` connected to the given file.
 
    Raises:
      OSError: If the socket file could not be connected to.
      RuntimeError: If AF_UNIX sockets are not supported.
    z/Unix sockets are not supported on this platformN) Úhas_unixÚ RuntimeErrorrrrr
ÚconnectÚosÚfspathÚtrioZ SocketStream)ÚfilenameÚsockrrr    Úopen_unix_sockets 
 
 r) rÚ
contextlibrrZ trio.socketrrrr Ú ImportErrorr
rrrrr    Ú<module>s