Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit75e2639

Browse files
authored
[stdlib][socket] import constants from the_socket module (#15127)
1 parent8d2ea19 commit75e2639

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎stdlib/socket.pyi‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,21 @@ if sys.platform != "linux":
969969
ifsys.platform!="darwin"andsys.platform!="linux":
970970
__all__+= ["AF_BLUETOOTH"]
971971

972+
ifsys.platform!="win32"andsys.platform!="darwin"andsys.platform!="linux":
973+
from_socketimportBTPROTO_HCIasBTPROTO_HCI,BTPROTO_L2CAPasBTPROTO_L2CAP,BTPROTO_SCOasBTPROTO_SCO
974+
975+
__all__+= ["BTPROTO_HCI","BTPROTO_L2CAP","BTPROTO_SCO"]
976+
977+
ifsys.platform!="win32"andsys.platform!="darwin"andsys.platform!="linux":
978+
from_socketimportHCI_DATA_DIRasHCI_DATA_DIR,HCI_FILTERasHCI_FILTER,HCI_TIME_STAMPasHCI_TIME_STAMP
979+
980+
__all__+= ["HCI_FILTER","HCI_TIME_STAMP","HCI_DATA_DIR"]
981+
982+
ifsys.version_info>= (3,11)andsys.platform!="linux"andsys.platform!="win32"andsys.platform!="darwin":
983+
from_socketimportLOCAL_CREDSasLOCAL_CREDS,LOCAL_CREDS_PERSISTENTasLOCAL_CREDS_PERSISTENT,SCM_CREDS2asSCM_CREDS2
984+
985+
__all__+= ["SCM_CREDS2","LOCAL_CREDS","LOCAL_CREDS_PERSISTENT"]
986+
972987
ifsys.platform=="win32"andsys.version_info>= (3,12):
973988
__all__+= ["AF_HYPERV"]
974989

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp