Skip to content

Commit 86b31dc

Browse files
committed
Listener: fix doc markup, include in globals of its module
1 parent 0d54f3d commit 86b31dc

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

shared-bindings/_canio/Listener.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
#include "py/objproperty.h"
3333

3434
//| class Listener:
35-
//| """Listens for CAN message
35+
//| """Listens for CAN message
3636
//|
37-
//| _canio.Listener is not constructed directly, but instead by calling the
38-
//| Listen method of a _canio.CAN object."""
37+
//| _canio.Listener is not constructed directly, but instead by calling the
38+
//| Listen method of a _canio.CAN object."""
3939
//|
4040

4141
//| def read(self) -> Optional[Message]:

shared-bindings/_canio/__init__.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,9 @@
5757
STATIC const mp_rom_map_elem_t canio_module_globals_table[] = {
5858
{ MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR__canio) },
5959
{ MP_ROM_QSTR(MP_QSTR_CAN), MP_ROM_PTR(&canio_can_type) },
60+
{ MP_ROM_QSTR(MP_QSTR_Listener), MP_ROM_PTR(&canio_listener_type) },
6061
{ MP_ROM_QSTR(MP_QSTR_Match), MP_ROM_PTR(&canio_match_type) },
6162
{ MP_ROM_QSTR(MP_QSTR_Message), MP_ROM_PTR(&canio_message_type) },
62-
#if 0
63-
{ MP_ROM_QSTR(MP_QSTR_Listener), MP_ROM_PTR(&canio_listener_type) },
64-
#endif
6563
};
6664

6765

0 commit comments

Comments
 (0)