summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/modwebsocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/modwebsocket.c')
-rw-r--r--extmod/modwebsocket.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/extmod/modwebsocket.c b/extmod/modwebsocket.c
index 3bf50cc58c..d2cb720396 100644
--- a/extmod/modwebsocket.c
+++ b/extmod/modwebsocket.c
@@ -311,6 +311,10 @@ const mp_obj_module_t mp_module_websocket = {
.globals = (mp_obj_dict_t *)&websocket_module_globals,
};
-MP_REGISTER_MODULE(MP_QSTR_websocket, mp_module_websocket);
+// This module should not be extensible (as it is not a CPython standard
+// library nor is it necessary to override from the filesystem), however it
+// has previously been known as `uwebsocket`, so by making it extensible the
+// `uwebsocket` alias will continue to work.
+MP_REGISTER_EXTENSIBLE_MODULE(MP_QSTR_websocket, mp_module_websocket);
#endif // MICROPY_PY_WEBSOCKET