Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .audit/oberstet_fix_1767.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- [ ] I did **not** use any AI-assistance tools to help create this pull request.
- [x] I **did** use AI-assistance tools to *help* create this pull request.
- [x] I have read, understood and followed the projects' [AI Policy](https://github.com/crossbario/autobahn-python/blob/main/AI_POLICY.md) when creating code, documentation etc. for this pull request.

Submitted by: @oberstet
Date: 2025-11-21
Related issue(s): #1767
Branch: oberstet:fix_1767
8 changes: 5 additions & 3 deletions autobahn/websocket/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@
# Step 1: Probe for NVX availability (was it built and can we import it?)
_has_nvx = False
try:
# Try importing both NVX modules to verify they're available
from autobahn.nvx._xormasker import create_xor_masker as _nvx_xor_test # noqa: F401
from autobahn.nvx._utf8validator import Utf8Validator as _nvx_utf8_test # noqa: F401
# Try importing the actual CFFI extension modules directly
# (not just the Python wrappers which are always importable)
# This correctly detects if NVX was actually built at install time
import _nvx_utf8validator # noqa: F401
import _nvx_xormasker # noqa: F401

_has_nvx = True
except ImportError:
Expand Down