Skip to content

Commit 4b21193

Browse files
authored
Update pyarchivefile_py3.py
1 parent 4f28ca3 commit 4b21193

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pyarchivefile_py3.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ def randbits(k):
7373
except ImportError:
7474
pass
7575

76+
# Optional Bluetooth RFCOMM support: works via stdlib on Linux (AF_BLUETOOTH/BTPROTO_RFCOMM)
77+
# and via PyBluez if installed.
78+
try:
79+
import bluetooth as _pybluez # type: ignore
80+
except Exception:
81+
_pybluez = None
82+
7683
import http.cookiejar as cookielib
7784
from http.cookies import SimpleCookie
7885
from http.client import HTTPException

0 commit comments

Comments
 (0)